Ejemplo n.º 1
0
 /// <summary>
 /// Disposes all external resources.
 /// </summary>
 /// <param name="disposing">The dispose indicator.</param>
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_dbContext != null)
         {
             _dbContext.Dispose();
             _dbContext = null;
         }
     }
 }
 public ERDDBContext Get()
 {
     return(dataContext ?? (dataContext = new ERDDBContext()));
 }