예제 #1
0
 public Repository(CTX _db)
 {
     db    = _db;
     dbSet = _db.Set <TEntity>();
 }
예제 #2
0
 public void Add(TEntity obj)
 {
     db.Set <TEntity>().Add(obj);
     db.SaveChanges();
 }