public graduatestudent_OBJ GetByID(graduatestudent_OBJ.BusinessObjectID id)
        {
            List <graduatestudent_OBJ> li = getAll(new spParam("CODE", SqlDbType.Int, id.CODE, 0));

            if (li == null || li.Count == 0)
            {
                return(null);
            }
            return(li[0]);
        }
        public int Delete(graduatestudent_OBJ.BusinessObjectID obj)
        {
            int        ret = 0;
            DBBase     db  = new DBBase(ConfigurationSettings.AppSettings["connectionString"].ToString());
            string     sql = @"DELETE FROM graduatestudent  WHERE code=@code_key 
                ";
            SqlCommand com = new SqlCommand();

            com.CommandText = sql;
            com.CommandType = CommandType.Text;
            com.Parameters.Add("@code_key", SqlDbType.VarChar).Value = obj.CODE;

            ret = db.doCommand(ref com);
            return(ret);
        }