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

            if (!retval)
            {
                throw new NorthwindDataException("UpdateEmployee failed.");
            }
        }
예제 #2
0
        public static void InsertNewEmployee(NorthwindEmployee ne)
        {
            bool retval = ne.Save();

            if (!retval)
            {
                throw new NorthwindDataException("InsertNewEmployee failed.");
            }
        }