【发布时间】:2021-11-27 22:34:44
【问题描述】:
我将 ASP.NET Core 与 Entity Framework 结合使用。
我在 Stackoverflow 上找到了这个工作命令
var d = await db.Employee.Where(x => x.FirstName == "Jack").ToListAsync();
在以下链接: Entity Framework - async select with where condition
请告诉我如何根据多个 where 条件将表记录加载到列表中。
我想要这样的东西:
var d = await db.Employee.Where(x => x.LastName == "Smith"
and x => x.Country == "UK"
and x => x.Age == 45 etc)
【问题讨论】:
标签: c# entity-framework asp.net-core .net-core blazor