Exemple #1
0
 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;
 }
Exemple #4
0
 public AutoCompleteController(WebCoreContext context)
 {
     _context = context;
 }
 public WebCoreRepository(WebCoreContext context, ILogger <WebCoreRepository> logger)
 {
     _context = context;
     _logger  = logger;
 }
Exemple #6
0
 public CulturesController(WebCoreContext context)
 {
     _context = context;
 }