예제 #1
0
 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;
     }
 }
예제 #2
0
 public DbRepository(IDbContextFactory factory, IUserContext userContext,
                     ILexiconFactoryService lexiconFactoryService, IDateService dateService) : this(factory.Create <T>(), userContext,
                                                                                                    lexiconFactoryService, dateService)
 {
 }
예제 #3
0
 public SampleRepository(IDbContextFactory factory, IUserContext userContext, ILexiconFactoryService lexiconFactoryService, IDateService dateService) : base(factory, userContext, lexiconFactoryService, dateService)
 {
 }