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