Exemplo n.º 1
0
        public ECSeedData(
            ECDbContext tmContext,
            IUnitOfWork unitOfWork,
            UserManager <AuthUser> userManager,
            SignInManager <AuthUser> signInManager,
            RoleManager <AuthRole> roleManager,
            GlobalService globalService,
            ILoggerFactory loggerFactory
            )
        {
            _unitOfWork    = unitOfWork;
            _userManager   = userManager;
            _signInManager = signInManager;
            _roleManager   = roleManager;
            _tmContext     = tmContext;

            _globalService = globalService;
            _logger        = loggerFactory.CreateLogger <ECSeedData>();
        }
Exemplo n.º 2
0
 public UnitOfWork(ECDbContext context)
 {
     _context = context;
     Contacts = new ContactRepository(_context);
 }