Beispiel #1
0
 protected ServiceBase(IServiceProvider service, ILogger logger, Expression <Func <T, bool> > filter = null, Func <string, string> asTable = null)
 {
     Log        = logger;
     Session    = service.GetService <ISession>();
     UowManager = service.GetService <IUnitOfWorkManager>();
     Mapper     = service.GetService <IMapper>();
     Uow        = service.GetService <IUnitOfWork <TContext> >();
     Repository = Uow.GetGuidRepository(filter, asTable);
 }