Exemplo n.º 1
0
 public UpdateServices(DbContext dbContext,
                       IEntryFinder entryServices,
                       IEntityServicesFactory entityServicesFactory,
                       IEventManager eventManager,
                       DetachedOptionsExtension options)
 {
     _dbContext             = dbContext;
     _eventManager          = eventManager;
     _entryServices         = entryServices;
     _entityServicesFactory = entityServicesFactory;
     _options = options;
 }
Exemplo n.º 2
0
 public static DetachedOptionsExtension UseManyToManyHelper(this DetachedOptionsExtension detachedOptions)
 {
     detachedOptions.DetachedServices.AddDetachedManyToManyHelper();
     return(detachedOptions);
 }
Exemplo n.º 3
0
 public static DetachedOptionsExtension UseAuditing(this DetachedOptionsExtension detachedOptions)
 {
     detachedOptions.DetachedServices.AddDetachedAuditing();
     return(detachedOptions);
 }
 public override IDbContextServices Initialize(IServiceProvider scopedProvider, IDbContextOptions contextOptions, DbContext context)
 {
     _scopedProvider = scopedProvider;
     _options        = contextOptions.FindExtension <DetachedOptionsExtension>();
     return(base.Initialize(scopedProvider, contextOptions, context));
 }
Exemplo n.º 5
0
 public static DetachedOptionsExtension UsePartialKey(this DetachedOptionsExtension detachedOptions)
 {
     detachedOptions.DetachedServices.AddDetachedPartialKey();
     return(detachedOptions);
 }