示例#1
0
 public CitizenController(IUnitOfWork unitOfWork, Code9Context Context)
 {
     _unitOfwork       = unitOfWork;
     _Context          = Context;
     _CitizenManager   = new CitizenManager(unitOfWork, Context);
     _exceptionManager = new ExceptionManager(unitOfWork);
 }
示例#2
0
 public ShopController(IUnitOfWork unitOfWork, Code9Context Context)
 {
     _unitOfwork       = unitOfWork;
     _Context          = Context;
     _ShopManager      = new ShopManager(unitOfWork, Context);
     _exceptionManager = new ExceptionManager(unitOfWork);
 }
示例#3
0
 public GenericRepository(Code9Context dbContext)
 {
     if (dbContext == null)
     {
         throw new ArgumentNullException("dbContext");
     }
     Context = dbContext;
 }
示例#4
0
 public AdminController(IUnitOfWork unitOfWork, IOptions<AppSettingsViewModel> appSettings, Code9Context Context)
 {
     _unitOfwork = unitOfWork;
     _Context = Context;
     _AdminManager = new AdminManager(Context, appSettings, unitOfWork);
     _ShopManager = new ShopManager(unitOfWork, Context);
     _exceptionManager = new ExceptionManager(unitOfWork);
 }
示例#5
0
 public ShopManager(IUnitOfWork unitOfWork, Code9Context context)
 {
     _unitOfWork = unitOfWork;
     _context    = context;
 }
示例#6
0
 /// <summary>
 /// Constructor for ErrorLogRepository
 /// </summary>
 /// <param name="context"></param>
 public ErrorLogRepository(Code9Context context) : base(context)
 {
     _context = context;
 }
示例#7
0
 /// <summary>
 /// Constructor for UnitOfWork
 /// </summary>
 /// <param name="context"></param>
 public UnitOfWork(Code9Context context)
 {
     _context = context;
 }
示例#8
0
 public CitizenManager(IUnitOfWork unitOfWork, Code9Context context)
 {
     _unitOfWork = unitOfWork;
     _context    = context;
 }
示例#9
0
 public UserManager(Code9Context context, IOptions <AppSettingsViewModel> appSettings, IUnitOfWork unitOfWork)
 {
     _unitOfWork  = unitOfWork;
     _context     = context;
     _appSettings = appSettings.Value;
 }