Beispiel #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="entityName">Verilen entity adı web.configdeki connStr ile aynı olmalı</param>
 /// <param name="creationOption">Hangi tipte context yaratılacağına karar vermek amaçlı</param>
 public UnitOfWork(DBContextCreationOptions creationOption)
 {
     this.m_CreationOption = creationOption;
     if (creationOption == m_CreationOption)
     {
         this.m_Context = new TakeALookDBContext();
     }
     else
     {
         throw new NotImplementedException("DBContextCreationOptions hatası");
     }
 }
Beispiel #2
0
 protected OperationsBase(DBContextCreationOptions option)
 {
     m_UnitOfWork = new UnitOfWork(option);
 }