这样写对吗?
public static newtype getAllnewtypeByid(int newtypeid)
        {
            string sql = "select * from newtype where newtypeid=@newtypeid";
            using (SqlDataReader reader = DBHelp.GetReader(sql, new SqlParameter("@newtypeid", newtypeid)))
            {
                newtype objnewtype = new newtype();
                if (reader.Read())
                {
                    objnewtype.Newtypeid = (int)reader["newtypeid"];
                    objnewtype.Typename = (string)reader["typename"];
                }
                return objnewtype;
            }
        }