public CustomerDataService(CustomerDatabaseContext context)
 {
     this.context = context;
 }
 /// <summary>
 /// Open Connection with Connection String
 /// </summary>
 /// <param name="connectionString"></param>
 public void OpenConnection(string connectionString)
 {
     _context = new CustomerDatabaseContext(cconnectionString);
 }
 /// <summary>
 /// Open Connection
 /// </summary>
 public Object OpenConnection()
 {
     _context = new CustomerDatabaseContext();
     return(_context);
 }
 public void OpenConnection(Object dbConnection)
 {
     _context = (CustomerDatabaseContext)dbConnection;
 }
 /// <summary>
 ///
 /// </summary>
 public void CloseConnection()
 {
     _transaction = null;
     _context     = null;
 }