示例#1
0
 public MariaDbServiceScopeInitialize(ILogger <MariaDbInitialize> logger, MariaDbContext mariaDbContext, IServiceScopeFactory serviceScopeFactory)
 {
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
     this.serviceScopeFactory = serviceScopeFactory ?? throw new ArgumentNullException(nameof(serviceScopeFactory));
 }
 public MariaDbInitialize(ILogger <MariaDbInitialize> logger, MariaDbContext mariaDbContext)
 {
     this.logger         = logger ?? throw new ArgumentNullException(nameof(logger));
     this.mariaDbContext = mariaDbContext ?? throw new ArgumentNullException(nameof(mariaDbContext));
 }