示例#1
0
        private void GetItineraryLandmarks(Itinerary itinerary, SqlConnection conn)
        {
            const string procedureName = "GetItinerary";
            SqlCommand   cmd           = new SqlCommand(procedureName, conn);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@itinerary_id", itinerary.ItineraryID);
            IDataReader dataReader = cmd.ExecuteReader();

            itinerary.AddLandmarks(dataReader);
        }