Exemple #1
0
 public MogDbContext GetCurrent()
 {
     if (_instance == null)
     {
         _instance = new MogDbContext();
     }
     return _instance;
 }
Exemple #2
0
 public MogDbContext GetCurrent()
 {
     if (_instance == null)
     {
         _instance = new MogDbContext();
     }
     return(_instance);
 }
Exemple #3
0
 public FileRepository(IdbContextProvider provider)
 {
     contextProvider = provider;
     dbContext       = provider.GetCurrent();
 }
Exemple #4
0
 public BaseRepository(IdbContextProvider provider)
 {
     contextProvider = provider;
     dbContext = contextProvider.GetCurrent();
 }