Inferred view key - obey nulliff isnull
Posted: Fri 27 Apr 2012 16:19
Hey, when we import views we don't seem to have any control over the inferred keys and thus null columns.
With the ms sql version the workaround is to use nulliff and isnull (http://stackoverflow.com/questions/1013 ... w-question).
This doesn't seem to be working with dotconnect postgres, it seems you are making a column a key and not null if it is a pk in a joined view but this defeats left joins.
We like left joins here and really need control over inferred keys and the null-ability of those columns or we are going to be left hand editing the edmx after every update from the db.
In the short term is there a template code generation file I can edit to work around this?
With the ms sql version the workaround is to use nulliff and isnull (http://stackoverflow.com/questions/1013 ... w-question).
This doesn't seem to be working with dotconnect postgres, it seems you are making a column a key and not null if it is a pk in a joined view but this defeats left joins.
We like left joins here and really need control over inferred keys and the null-ability of those columns or we are going to be left hand editing the edmx after every update from the db.
In the short term is there a template code generation file I can edit to work around this?