Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是SubSonic ( v.3 ActiveRecord )的新手,而且我以前对 linq 不感兴趣,也找不到足够的文档或示例进行查询。
例如,我不知道如何使用已知字段登录会员;
Member.Exists(x => x.Email == Email); <=== 如何为两个字段写这个?或者
Member.Exists(x => x.Email == Email);
var Member = Member.SingleOrDefault(x => x.Email == Email); <=== 如何为两个字段写这个?
var Member = Member.SingleOrDefault(x => x.Email == Email);
任何文档、教程或示例都会很棒!谢谢!
好的,我已经为我的问题找到了一些解决方案,至少这是一个开始。
var Member = Members.SingleOrDefault(x => x.Email == Email && x.Password == Password);