public static void DeleteEmployee(NorthwindEmployee ne) { bool retval = ne.Delete(); if (!retval) { throw new NorthwindDataException("DeleteEmployee failed."); } }
public static void DeleteEmployee(NorthwindEmployee ne) { bool retval = ne.Delete(); if (!retval) { throw new NorthwindDataException("Employee delete failed."); } // Delete the object in memory. ne = null; }