public DbRepository(AuthInfo authInfo) { _authInfo = authInfo; _instanceId = authInfo.CompanyId; _context = new FilteredContext(authInfo.CompanyId); _releaseContext = true; }
public DbRepository(int companyId) { _context = new FilteredContext(companyId); _instanceId = companyId; _releaseContext = true; }