As I understand it, since the Entity Framework is based on the Entred Driven Design concept for Entities, each Entity should by definition have a unique identifier. If the concept that the data in your table represents does not conceptually have a unique identifier, then this is not an entity, in the sense that the framework provides.
With that in mind, I would define a stored procedure by making it accessible through my object context , and then make the objects encapsulating this data through a class that lazily loads the data, manually map it to the objects you use, and present them read-only .
source
share