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