Пример #1
0
 public Transaction(IDatabaseFactory databaseFactory)
 {
     _context = _context ?? databaseFactory.MakeDbContext();
 }
Пример #2
0
 public GPIEntities MakeDbContext()
 {
     return(_entities ?? (_entities = new GPIEntities()));
 }