摘要:
public static class EFHelper { //初始化上下文 public static T1Entities db = DbContextHelper.GetCurrentDbContext(); //添加返回影响行数 public static int Add<T>(T mod 阅读全文
摘要:
public static class EFHelper { //新增一条数据 public static int Add<T>(T model) where T : class { using (EFDemo001Entities db = new EFDemo001Entities()) { d 阅读全文