Exemple #1
0
 public BaseService(IRepositoryFactory repositoryFactory, IExam_Platform_Context mydbcontext)
 {
     this._repositoryFactory = repositoryFactory;
     this._mydbcontext       = mydbcontext;
 }
 public UserService(IRepositoryFactory repositoryFactory, IExam_Platform_Context mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }
Exemple #3
0
 public Repository(IExam_Platform_Context mydbcontext)
 {
     this._dbContext = mydbcontext as exam_platformContext;
     this._dbSet     = _dbContext.Set <T>();
     this._connStr   = _dbContext.Database.GetDbConnection().ConnectionString;
 }
 public IRepository <T> CreateRepository <T>(IExam_Platform_Context mydbcontext) where T : class
 {
     return(new Repository <T>(mydbcontext));
 }