Use Views in Entity Framework

后端 未结 2 1107
耶瑟儿~
耶瑟儿~ 2021-01-14 23:46

I am using Entity Framework on a project, but am finding the large queries, especially those which use LEFT joins, to be very tedious to write, and hard to debug.

Is

2条回答
  •  滥情空心
    2021-01-15 00:27

    First create your view.
    Update Your .edmx File.
    then use like this.

    using (ManishTempEntities obj = new ManishTempEntities())
    {
         var a = obj.View_1.ToList();
    }
    

提交回复
热议问题