public void OpenConnection(Object dbConnection)
 {
     _context = (SalesOrderManagementDatabase)dbConnection;
 }
 /// <summary>
 /// Open Connection
 /// </summary>
 public Object OpenConnection()
 {
     _context = new SalesOrderManagementDatabase();
     return(_context);
 }
 public void OpenConnection(string connectionString)
 {
     _context = new SalesOrderManagementDatabase(connectionString);
 }
 /// <summary>
 ///
 /// </summary>
 public void CloseConnection()
 {
     _transaction = null;
     _context     = null;
 }