Is it possible to load data using a sql-view in Entity Framework 4.3.1? Using Code-First
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes if you work with existing database where a view is already defined you can simply cheat EF and let it assume that the view is actually a table by using either
[Table("my_View")]annotation on entity class or.ToTable("my_View")method in fluent mapping.