protected DbRepository(DbContextBase context, IUserContext userContext, ILexiconFactoryService lexiconFactoryService, IDateService dateService) : this(context) { _userContext = userContext; DateService = dateService; _lexiconDictionary = lexiconFactoryService.Create(); EnableTranslation = _lexiconDictionary != null; if (EnableTranslation) { DbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; } }
public DbRepository(IDbContextFactory factory, IUserContext userContext, ILexiconFactoryService lexiconFactoryService, IDateService dateService) : this(factory.Create <T>(), userContext, lexiconFactoryService, dateService) { }
public SampleRepository(IDbContextFactory factory, IUserContext userContext, ILexiconFactoryService lexiconFactoryService, IDateService dateService) : base(factory, userContext, lexiconFactoryService, dateService) { }