Following snippet is to forcefully allow view which do not have any primary key in edmx4.0.
ref: http://stackoverflow.com/questions/1013333/entity-framework-and-sql-server-view
SELECT
ISNULL(MyPrimaryID,-999) MyPrimaryID,
NULLIF(AnotherProperty,'') AnotherProperty
FROM ( ... ) AS temp
ref: http://stackoverflow.com/questions/1013333/entity-framework-and-sql-server-view
No comments:
Post a Comment