Example #1
0
        public Repositorys(IconcardContext mydbcontext)
        {
            _dbContext = mydbcontext as snblogContext;
            if (_dbContext == null)
            {
                return;
            }

            _dbSet   = _dbContext.Set <T>();
            _connStr = _dbContext.Database.GetDbConnection().ConnectionString;
        }
 public SnUserTalkService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }
Example #3
0
 public ReSnLabelsService(ICacheUtil cacheUtil, IRepositoryFactory repositoryFactory, IconcardContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
     _cacheUtil = (CacheUtil)cacheUtil;
 }
Example #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;
 }
Example #6
0
 public SnSortService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, snblogContext service, ICacheUtil cacheutil) : base(repositoryFactory, mydbcontext)
 {
     _service   = service;
     _cacheutil = (CacheUtil)cacheutil;
 }
Example #7
0
 public SnVideoService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext) : base(repositoryFactory, mydbcontext)
 {
 }
Example #8
0
 public BaseService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext)
 {
     this._repositoryFactory = repositoryFactory;
     this._mydbcontext       = mydbcontext;
 }
 private readonly snblogContext _coreDbContext;//DB
 public SnVideoTypeService(IRepositoryFactory repositoryFactory, IconcardContext mydbcontext, snblogContext coreDbContext) : base(repositoryFactory, mydbcontext)
 {
     _coreDbContext = coreDbContext;
 }