Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public TEntity getById(object id)
 {
     return(_dbContext.Set <TEntity>().Find(id));
 }
Exemple #2
0
 public TEntity getById(object id)
 {
     return(_dbContext.Set <TEntity>().Find(id));
     // throw new NotImplementedException();
 }
Exemple #3
0
 public TEntity GetEntityById(object id)
 {
     return(_generalDbContext.Set <TEntity>().Find(id));
 }
Exemple #4
0
 public void Add(T TModel)
 {
     _generalDbContext.Set <T>().Add(TModel);
     _generalDbContext.SaveChanges();
 }