public EfRepository(EfUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; if (!Configuration.IsNull("EfCommandTimeout")) { ((IObjectContextAdapter)unitOfWork.Context).ObjectContext.CommandTimeout = Configuration.AsInt("EfCommandTimeout"); } //13.08.2013 добавил, тестирую this.unitOfWork.ReferencesCount++; }
public EfRepository(EfUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }