コード例 #1
0
 public void Delete <T>(object dbContext, T model, bool saveChanges = true) where T : class
 {
     DefaultDataAccess.Delete <T>(dbContext, model, saveChanges);
 }
コード例 #2
0
 public bool SaveChanges(object dbContext)
 {
     return(DefaultDataAccess.SaveChanges(dbContext));
 }
コード例 #3
0
 public static void AddOrUpdate <T>(object dbContext, T model, bool saveChanges = true) where T : class
 {
     DefaultDataAccess.AddOrUpdate <T>(dbContext, model, saveChanges);
 }
コード例 #4
0
 public bool Any <T>(object dbContext, Expression <Func <T, bool> > predicate) where T : class
 {
     return(DefaultDataAccess.Any <T>(dbContext, predicate));
 }
コード例 #5
0
 public IQueryable <T> GetList <T>(object dbContext) where T : class
 {
     return(DefaultDataAccess.GetList <T>(dbContext));
 }
コード例 #6
0
 public IQueryable <T> GetList <T>(object dbContext, Expression <Func <T, bool> > predicate) where T : class
 {
     return(DefaultDataAccess.GetList <T>(dbContext, predicate));
 }
コード例 #7
0
 public T GetFirstOrDefault <T>(object dbContext, Expression <Func <T, bool> > predicate) where T : class
 {
     return(DefaultDataAccess.GetFirstOrDefault <T>(dbContext, predicate));
 }