예제 #1
0
        public void deleteFactory(int id)
        {
            DBHelper._Factory dbhelp          = new DBHelper._Factory();
            Factory           existingFactory = dbhelp.GetByid(id);

            dbhelp.Delete(existingFactory);
        }
예제 #2
0
        public void deleteFactory(int id)
        {
            DBHelper._Factory dbhelp          = new DBHelper._Factory();
            Factory           existingFactory = dbhelp.GetByid(id);

            if (existingFactory == null)
            {
                throw new CDSException(10701);
            }

            dbhelp.Delete(existingFactory);
        }