コード例 #1
0
ファイル: Repository.cs プロジェクト: lyh0919/BoothSystem
 public Repository(IBoothManageContext mydbcontext)
 {
     this._dbContext = mydbcontext as BoothManageContext;
     this._dbSet     = _dbContext.Set <T>();
     this._connStr   = _dbContext.Database.GetDbConnection().ConnectionString;
 }
コード例 #2
0
ファイル: BoothManager.cs プロジェクト: lyh0919/BoothSystem
 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
ファイル: Base.cs プロジェクト: lyh0919/BoothSystem
 public Base(IRepositoryFactory repositoryFactory, IBoothManageContext mydbcontext)
 {
     this._repositoryFactory = repositoryFactory;
     this._mydbcontext       = mydbcontext;
 }
コード例 #5
0
ファイル: MarketBll.cs プロジェクト: lyh0919/BoothSystem
 public MarketBll(IRepositoryFactory repositoryFactory, IBoothManageContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }