public UnitOfWork(IMarketSimulatorContext dbContext) { this.dbContext = dbContext; }
public AuthRepository(IMarketSimulatorContext context) { this.context = context; _userManager = new UserManager <IdentityUser>(new UserStore <IdentityUser>(this.context as DbContext)); }
public BaseRepository(IMarketSimulatorContext context) { this.context = context; this.dbSet = (context as DbContext).Set <T>(); }