Ejemplo n.º 1
0
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="conCardContext"></param>
        public Repository(IconCardContext conCardContext)
        {
            this._dbContext = conCardContext as ConCardContext;
            this._dbSet     = _dbContext.Set <T>();

            this._connStr = _dbContext.Database.GetDbConnection().ConnectionString;
        }
Ejemplo n.º 2
0
 public IRepository <T> CreateRepository <T>(IconCardContext conCardContext) where T : class
 {
     return(new Repository <T>(conCardContext));
 }
Ejemplo n.º 3
0
 public BaseService(IRepositoryFactory repositoryFactory, IconCardContext dbcontext)
 {
     this._repositoryFactory = repositoryFactory;
     this._dbcontext         = dbcontext;
 }
Ejemplo n.º 4
0
 public UserService(IRepositoryFactory repositoryFactory, IconCardContext dbcontext) : base(repositoryFactory, dbcontext)
 {
 }