Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am wondering if someone can help me in my following problem.

I am using code first entity framework approach in my project and i need to use a database view for some purpose.In order to get properties of database view,i create an model and try to bind it with my database view.However,my model create a separate table in database and not mapping to view.

Is there any way of mapping an entity to database view using code first.I want to map it with view but it should not create a separate table.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900