How to use views in Entity Framework?
问题 How can I use database views in Entity Framework? I have the following view in the SQL database called pl SELECT dbo.Product.Productkey, dbo.Product.Productcode, dbo.Product.Productname, dbo.rcode.code, dbo.rcode.label FROM dbo.Product INNER JOIN dbo.rcode ON dbo.Product.programtypekey = dbo.rcode.rcodekey How can I read from the above view in application using EF? Currently I am readinmg from a table as shown below. I want to ready from view instead. In my context, I have public virtual