예제 #1
0
        public static void DeleteEmployee(NorthwindEmployee ne)
        {
            bool retval = ne.Delete();

            if (!retval)
            {
                throw new NorthwindDataException("DeleteEmployee failed.");
            }
        }
예제 #2
0
        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;
        }