Issue Listing items in Views
Posted: Mon 04 Apr 2016 15:55
Hi,
I have added a view into my model.
When I do this it seems that it kind a infers which properties shoudl be used as primary key.
First question: How does it infer which property(ies) should be key?
Also I have the following issue:
On my view, if I run it on sql or the generated query on sql it is all ok. However if I try to query it througth EF then it displays the right number of results without changing property values based on infered key.
Do you have any clue on how to solve it?
Thanks
I have added a view into my model.
When I do this it seems that it kind a infers which properties shoudl be used as primary key.
First question: How does it infer which property(ies) should be key?
Also I have the following issue:
On my view, if I run it on sql or the generated query on sql it is all ok. However if I try to query it througth EF then it displays the right number of results without changing property values based on infered key.
Do you have any clue on how to solve it?
Thanks