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

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

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