110,567
社区成员
发帖
与我相关
我的任务
分享
public static class Entity<TSource> where TSource : class
{
public static int Remove(Predicate<TSource> match)
{
//代码块
return 0;
}
}
RegisterModel q = new RegisterModel();
Entity<RegisterModel>.Remove(a => a.UserName == "" && a.Password == "");
Entity<RegisterModel>.Update(q, a => a.UserName);
Entity<RegisterModel>.Insert(q);