Esempio n. 1
0
 public ArtikleDataAccess()
 {
     _provider  = InitServiceProviderDA.GetInstance().ServiceProvider;
     _dbContext = _provider.GetService <ArticleDbContext>();
     _logger    = _provider.GetService <ILogger>();
     //{ Name = "ILoggerFactory" Id = "Microsoft.Extensions.Logging.ILoggerFactory"}
 }
Esempio n. 2
0
 public FilesDataAccess()
 {
     _provider  = InitServiceProviderDA.GetInstance().ServiceProvider;
     _dbContext = _provider.GetService <ArticleDbContext>();
     _logger    = _provider.GetService <ILogger>();
 }