Entity Framework - Where Clause

前端 未结 3 968
南笙
南笙 2021-01-20 00:48

Let\'s say i have a table named User. When I use the Entity Framework to get the records i do like this:

var db = new Context();
var users = db.Users;
         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-20 01:25

    The Sql submitted to your database will contain your where clause. You can use SQL Server Profiler to watch as queries are submitted to your DB.

提交回复
热议问题