public DatabaseInitializer(IServiceProvider provider) { this.repIdentityRole = provider.GetService <IAuthenticationRepository <IdentityRole, string> >(); this.repIdentityUser = provider.GetService <IAuthenticationRepository <IdentityUser, string> >(); this.repIdentityUserRole = provider.GetService <IAuthenticationRepository <IdentityUserRole <string>, string> >(); this.repIdentityUserClaim = provider.GetService <IAuthenticationRepository <IdentityUserClaim <string>, string> >(); this.repMachine = provider.GetService <IGenericRepository <Machine, int> >(); this.repDevice = provider.GetService <IGenericRepository <Device, int> >(); this.repDatavalue = provider.GetService <IGenericRepository <DataValue, int> >(); this.repOperators = provider.GetService <IGenericRepository <MachineOperator, int> >(); this.authContext = provider.GetService <AuthenticationDataContext>(); this.machineContext = provider.GetService <MachineDataContext>(); }
public SetUserUnitOfWork(AuthenticationDataContext context) : base(context) { }
public AuthenticationRepository(AuthenticationDataContext context) { Context = context; }