///// <summary> ///// Base Constructor of the manager ///// </summary> ///// <param name="ppgContext">data context</param> //public SecurityManager(CVASContext dbContext) //{ //} public SecurityManager() { var optionsBuilder = new DbContextOptionsBuilder <CVASContext>(); optionsBuilder.UseSqlServer("Server = PEEYUSH_AGRAWAL; UID = sa; password = clarion; Initial Catalog = CVASLive; MultipleActiveResultSets = true;"); _dbContext = new CVASContext(optionsBuilder.Options); _userDbSet = _dbContext.Set <AspnetMembership>(); }
public Repository(CVASContext context) { Context = context; DbSet = context.Set <T>(); }
public SampleController(CVASContext context) { _context = context; }