Example #1
0
        public void GetLandmarkRatings(Landmark landmark, SqlConnection conn)
        {
            SqlCommand cmd = new SqlCommand("GetLandmarkRatings", conn);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@landmark_id", landmark.ID);
            IDataReader reader = cmd.ExecuteReader();

            landmark.AddRatings(reader);
            reader.Close();
        }