public EFRepository(EBoxDbContext eboxDbContext)
 {
     if (eboxDbContext == null)
     {
         throw new ArgumentNullException("unitOfWork");
     }
     this._eboxDbContext = eboxDbContext;
 }
Exemplo n.º 2
0
        private static EBoxDbContext DbContextInstance()
        {
            if (_dpsDbContext == null)
            {
                _dpsDbContext = new EBoxDbContext();
            }

            return(_dpsDbContext);
        }