コード例 #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;
        }