示例#1
0
 public Generic(DesignPatternSampleEntities context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
示例#2
0
 public UnitOfWork()
 {
     context = new DesignPatternSampleEntities();
 }
 public BaseController()
 {
     db = new DesignPatternSampleEntities();
 }