コード例 #1
0
 public LoginController(LogisticsContext dbContext)
 {
     _dbContext = dbContext;
     _userLogic = new App_UserLogic(new EntityFrameworkGenericRepository <App_UserPoco>(_dbContext));
 }
コード例 #2
0
 public UserController(IMemoryCache cache, LogisticsContext dbContext)
 {
     _cache     = cache;
     _dbContext = dbContext;
     _userLogic = new App_UserLogic(new EntityFrameworkGenericRepository <App_UserPoco>(_dbContext));
 }