示例#1
0
 public DbRepository(DBAdapter context)
 {
     _context = context;
     dbEntity = _context.Set <T>();
 }
示例#2
0
 public virtual void Update(T entityToUpdate)
 {
     _context.Set <T>().AddOrUpdate(entityToUpdate);
 }
示例#3
0
 public DbRepository(string connectionString)
 {
     _context = new MockSQLContext(connectionString);
     dbEntity = _context.Set <T>();
 }