public DbProductRepository(ILogger logger, ProductDbContext context)
 {
     if (logger == null)
         throw new ArgumentNullException("logger");
     if (context == null)
         throw new ArgumentNullException("context");
     _logger = logger;
     _context = context;
 }
 public DbProductRepository(ILogger logger, ProductDbContext context)
 {
     if (logger == null)
     {
         throw new ArgumentNullException("logger");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     _logger  = logger;
     _context = context;
 }
Beispiel #3
0
 public DbLogger(ProductDbContext context)
 {
     if (context == null)
         throw new ArgumentNullException("context");
     _context = context;
 }