Hello!
I have a table called Item.
I have a view called ItemView, that returns all the column of Item + one more aggregated column, that I want to be read only.
I need to use it in Entity Framework, and I don't know how I should use it, since when insert the view in the designer, all the fields become entity-keys, besides no relationships available, so I can't access the related tables as nav-properties as from the base table.
Is there a way to make them both into one class? what else can I do?
Say I have an entity Item. after saving this Item I want to retrieve its computed-values from the view, how is this done?
I never used Views in EF, What should be the best-practice used in these scenarios?
Any advice, link, blog, article, joke is welcommed.