public static AttendanceDBContext GetInstance(IOptions <DBConnectionSettings> settings)
 {
     if (Instance == null)
     {
         Instance = new AttendanceDBContext(settings);
     }
     return(Instance);
 }
 public AccessPointRepository(IOptions <DBConnectionSettings> settings)
 {
     _context = AttendanceDBContext.GetInstance(settings);
 }
Exemplo n.º 3
0
 public AccessPointRepository()
 {
     _context = AttendanceDBContext.Instance;
 }