Example #1
0
 /// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="_dbContext"></param>
 public BaseServiceImpl(HouTaiDbContext _dbContext)
 {
     dbContext = _dbContext;
 }
Example #2
0
 public HomeController(HouTaiDbContext _dataContext, IAccountService _accountService, ILogger <HomeController> _logger)
 {
     dbContext      = _dataContext;
     AccountService = _accountService;
     Logger         = _logger;
 }