public LanguageService(IApplicationContext applicationContext, ICacheManager <ConcurrentDictionary <string, ConcurrentDictionary <string, LanguageEntity> > > cacheManager, EasyDbContext easyDbContext) : base(applicationContext, easyDbContext) { _cacheManager = cacheManager; }
public static EasyDbContext Make(IServiceProvider provider) { var options = new DbContextOptionsBuilder <EasyDbContext>() .UseInMemoryDatabase(Guid.NewGuid().ToString()) .UseInternalServiceProvider(provider) .ConfigureWarnings(x => x.Ignore(InMemoryEventId.TransactionIgnoredWarning)) .Options; var db = new EasyDbContext(options); db.Database.EnsureCreated(); db.Developers.Add(DeveloperFake.New().Build()); db.SaveChanges(); return(db); }
public UserService(IApplicationContext applicationContext, EasyDbContext easyDbContext) : base(applicationContext, easyDbContext) { }
public SystemService(EasyDbContext db) { _db = db; }
public LanguageService(IApplicationContext applicationContext, EasyDbContext easyDbContext) : base(applicationContext, easyDbContext) { }
public RoleService(IPermissionService permissionService, IApplicationContext applicationContext, EasyDbContext easyDbContext) : base(applicationContext, easyDbContext) { _permissionService = permissionService; }
public ConfigurationTest() { _db = DbContextBuilder.Make(DependenceInjectionTest.Make()); }
public PermissionService(IApplicationContext applicationContext, EasyDbContext easyDbContext) : base(applicationContext, easyDbContext) { }
public DataDictionaryService(IApplicationContext applicationContext, EasyDbContext easyDbContext) : base(applicationContext, easyDbContext) { }
public DeveloperRepository(EasyDbContext db) { _db = db; }