Ser*_*pia 0 .net c# sql linq-to-sql
例如,假设我想查看我的数据库中是否存在用户:
Select * from Users where inputID = Users.ID
然后,如果该结果带来> 0项,那么用户存在,对吗?
如何使用纯Linq-to-SQL类做这样的事情?
Den*_*gan 6
dbContext.Users.Any(x => x.ID == inputID)
归档时间:
15 年,2 月 前
查看次数:
102 次
最近记录: