public MogDbContext GetCurrent() { if (_instance == null) { _instance = new MogDbContext(); } return _instance; }
public MogDbContext GetCurrent() { if (_instance == null) { _instance = new MogDbContext(); } return(_instance); }
public FileRepository(IdbContextProvider provider) { contextProvider = provider; dbContext = provider.GetCurrent(); }
public BaseRepository(IdbContextProvider provider) { contextProvider = provider; dbContext = contextProvider.GetCurrent(); }