示例#1
0
 public Repository(IBoothManageContext mydbcontext)
 {
     this._dbContext = mydbcontext as BoothManageContext;
     this._dbSet     = _dbContext.Set <T>();
     this._connStr   = _dbContext.Database.GetDbConnection().ConnectionString;
 }
示例#2
0
 public BoothManager(IRepositoryFactory repositoryFactory, IBoothManageContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }
示例#3
0
 public IRepository <T> CreateRepository <T>(IBoothManageContext mydbcontext) where T : class, new()
 {
     return(new Repository <T>(mydbcontext));
 }
示例#4
0
 public Base(IRepositoryFactory repositoryFactory, IBoothManageContext mydbcontext)
 {
     this._repositoryFactory = repositoryFactory;
     this._mydbcontext       = mydbcontext;
 }
示例#5
0
 public MarketBll(IRepositoryFactory repositoryFactory, IBoothManageContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }