Ejemplo n.º 1
0
 public static PeopleDBContext GetInstance(IOptions <DBConnectionSettings> settings)
 {
     if (Instance == null)
     {
         Instance = new PeopleDBContext(settings);
     }
     return(Instance);
 }
Ejemplo n.º 2
0
 public EmployeeRepository(IOptions <DBConnectionSettings> settings)
 {
     _context = PeopleDBContext.GetInstance(settings);
 }
 public DepartmentRepository(IOptions <DBConnectionSettings> settings)
 {
     _context = PeopleDBContext.GetInstance(settings);
 }