Exemplo n.º 1
0
        public Repositorys(IconcardContext mydbcontext)
        {
            _dbContext = mydbcontext as snblogContext;
            if (_dbContext == null)
            {
                return;
            }

            _dbSet   = _dbContext.Set <T>();
            _connStr = _dbContext.Database.GetDbConnection().ConnectionString;
        }
Exemplo n.º 2
0
 public SnUserTalkService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }
Exemplo n.º 3
0
 public ReSnLabelsService(ICacheUtil cacheUtil, IRepositoryFactory repositoryFactory, IconcardContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
     _cacheUtil = (CacheUtil)cacheUtil;
 }
Exemplo n.º 4
0
 public IRepositorys <T> CreateRepository <T>(IconcardContext mydbcontext) where T : class
 {
     return(new Repositorys <T>(mydbcontext));
 }
 public ReSnNavigationService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, ICacheUtil cacheutil) : base(repositoryFactory, mydbcontext)
 {
     _cacheutil = (CacheUtil)cacheutil;
 }
Exemplo n.º 6
0
 public SnSortService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, snblogContext service, ICacheUtil cacheutil) : base(repositoryFactory, mydbcontext)
 {
     _service   = service;
     _cacheutil = (CacheUtil)cacheutil;
 }
Exemplo n.º 7
0
 public SnVideoService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }
Exemplo n.º 8
0
 public BaseService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext)
 {
     this._repositoryFactory = repositoryFactory;
     this._mydbcontext       = mydbcontext;
 }
Exemplo n.º 9
0
 private readonly snblogContext _coreDbContext;//DB
 public SnVideoTypeService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, snblogContext coreDbContext) : base(repositoryFactory, mydbcontext)
 {
     _coreDbContext = coreDbContext;
 }