Пример #1
0
 /// <summary>
 /// The context here is the DbContext for our real database
 /// The logger gets the logging object as a parameter,
 /// in our case it is WorldRepository itself.
 /// But now we are able to catch exceptions.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="logger"></param>
 public WorldRepository(
     WorldContext context,
     ILogger<WorldRepository> logger)
 {
     _context = context;
     _logger = logger;
 }
 public WorldContextSeedData(WorldContext context)
 {
     _context = context;
 }
Пример #3
0
 public WorldRepository(WorldContext context)
 {
     _context = context;
 }
 public TheWorldContextSeedData(WorldContext context, UserManager <WorldUser> userManager) //asp DI constructor injection
 {
     _context     = context;
     _userManager = userManager;
 }
Пример #5
0
 public WorldContextSeed(WorldContext context)
 {
     this.context = context;
 }
Пример #6
0
 public WorldRepository(WorldContext db)
 {
     _db = db;
 }
Пример #7
0
 public WorldRepository(WorldContext context, ILogger <WorldRepository> logger)
 {
     _context = context;
     _logger  = logger;
 }
Пример #8
0
 public WorldContextSeedData(WorldContext context, UserManager <WorldUser> userManager)
 {
     this.Context     = context;
     this.UserManager = userManager;
 }
 public WorldContextSeedData(WorldContext context, UserManager <WorldUser> userManager)
 {
     m_context     = context;
     m_userManager = userManager;
 }
Пример #10
0
 public WorldContextSeedData(WorldContext context, UserManager<WorldUser> userManager)
 {
     this.context = context;
     this.userManager = userManager;
 }
Пример #11
0
 public WorldContextSeedData(WorldContext context, UserManager <WorldUser> userManager) //dependency injection injected into the constructor
 {
     _context     = context;
     _userManager = userManager; //the user manager will allow me to add, remove and change users.
 }
 public WorldRepository(WorldContext context,
                        ILogger <WorldRepository> logger) // we decided to add Logging to the repository ILogger<WorldRepository> specialized logger with the class name
 {
     _context = context;
     _logger  = logger;
 }
Пример #13
0
 public WorldRepository(WorldContext WorldContext)
 {
     _worldContext = WorldContext;
 }
Пример #14
0
 public WorldContextSeedData(WorldContext worldContext)
 {
     _worldContext = worldContext;
 }
Пример #15
0
 public WorldContextSeedData(WorldContext context, UserManager<WorldUser> userManager)
 {
     _context = context;
     _userManager = userManager;
 }
Пример #16
0
 public AppController(IMailService service, WorldContext context)
 {
     _mailService = service;
     _context = context;
 }
Пример #17
0
 public WorldContextSeedData(WorldContext context)
 {
   _context = context;
 }
Пример #18
0
 public WorldRepository(WorldContext context, ILogger<WorldRepository> logger)
 {
     this.context = context;
     this.logger = logger;
 }
Пример #19
0
 public TheWorldContextSeedData(WorldContext context, UserManager <WorldUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Пример #20
0
 public WorldRepository(WorldContext context)
 {
     this.context = context;
 }
Пример #21
0
 public WorldRepository(WorldContext context, ILogger <WorldRepository> logger)
 {
     this.context = context;
     this.logger  = logger;
 }
Пример #22
0
 public WorldRepository(WorldContext context, ICacheManager cacheManager)
 {
     _context      = context;
     _cacheManager = cacheManager;
 }