public EfRepository() { _context = (SystemContext)CallContext.GetData("SystemContext"); if (_context == null) { _context = new SystemContext(); CallContext.SetData("SystemContext", _context); } }
/// <summary> /// Ctor /// </summary> /// <param name="context">Object context</param> public EfRepository(DbContext context) { this._context = (SystemContext)context; }