public WebCoreSeeder( WebCoreContext context, IHostingEnvironment env, UserManager <StoreUser> userManager) { _context = context; _env = env; _userManager = userManager; }
public WebCoreController(WebCoreContext context) { _context = context; if (_context.WebCoreItems.Count() == 0) { // Create a new ClassItem if collection is empty, // which means you can't delete all ClassItems. _context.WebCoreItems.Add(new WebCoreItem { Name = "Item1" }); _context.SaveChanges(); } }
public TranslationsController(WebCoreContext context) { _context = context; }
public AutoCompleteController(WebCoreContext context) { _context = context; }
public WebCoreRepository(WebCoreContext context, ILogger <WebCoreRepository> logger) { _context = context; _logger = logger; }
public CulturesController(WebCoreContext context) { _context = context; }