Entity Framework - Where Clause

前端 未结 3 970
南笙
南笙 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:23

    Entity Framework will translate such a query into a "Store Expression." That is, it will generate a database query -- assuming your data storage is a database -- that will be somewhat similar to the query you included in your question. It very well may name the columns, however, and there are likely to be some other differences.

提交回复
热议问题