Exemple #1
0
        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++;
        }
Exemple #2
0
 public EfRepository(EfUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }