开发者

ADO.NET Entity 1:1 Navigation Property

Is there a way to get ADO.NET Entity to generate 1:1 navigation properties? If I开发者_开发知识库 do foreign keys I always get 1:N navigation properties.


If I have a foreign key constraint in the database for EntityA like this: FOREIGN KEY (FIELD_X) REFERENCES ENTITYB (FIELD_Y), then when you generated the edmx you should get a single-instance navigational property on EntityA (e.g.: EntityA.EntityB).


Yes - it's possible. I don't know what to do in the Designer, but try to change the Multiplicity somewer. Sorry! Seldom used the Desinger - working more with code generation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜