예제 #1
0
 public GenericRepository(SampleDBEntities context)
 {
     this.context = context;
     dbset        = context.Set <TEntity>();
 }
예제 #2
0
 public Repository(SampleDBEntities context)
 {
     isDisposed = false;
     Context    = context;
     table      = context.Set <T>();
 }