I'm new to SubSonic ( v.3 ActiveRecord ) also I'm not interested in linq before and I couldn't find enough document or samples for queries .
For example I don't know how to login a member with known fields;
Member.Exists(x => x.Email == Email);
<=== How to write this for two fields? OR
var Member = Member.SingleOrDefault(x => x.Email == Email);
<=== How to write this for two fields?
Any documents, tutorials or samples would be great! Thanks!
好的,我已经为我的问题找到了一些解决方案,至少这是一个开始。
var Member = Members.SingleOrDefault(x => x.Email == Email && x.Password == Password);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.