Esempio n. 1
0
 public void AddOrUpdate(TDbEntity dbEntity, bool @new = false)
 {
     if (@new)
     {
         EntitiesSet.Add(dbEntity);
     }
     else
     {
         Context.Entry(dbEntity).State = EntityState.Modified;
     }
 }
Esempio n. 2
0
 public void Add(TDbEntity dbEntity)
 {
     EntitiesSet.Add(dbEntity);
 }