直接上代码
public class User {
public int UserId { get;set; }
public string Email { get;set; }
}
IDatabase db = new Database("connStringName");
var users = db.Query<User>;
var queryByEmail = users.Where(x=>x.Email == "Andy@google.com");
var queryById users.SingleOrDefault(x=>x.Id.Equals(1));
xxx
谢谢