/// <summary> /// Loads the given ReviewerProfile object from the given database data reader. /// </summary> /// <param name="reviewerProfile">The ReviewerProfile object to load.</param> /// <param name="dr">The database data reader to read data from.</param> public static void LoadDataReader(ReviewerProfile reviewerProfile, IDataReader dr) { //SET FIELDS FROM ROW DATA reviewerProfile.ReviewerProfileId = dr.GetInt32(0); reviewerProfile.Email = dr.GetString(1); reviewerProfile.DisplayName = dr.GetString(2); reviewerProfile.Location = NullableData.GetString(dr, 3); reviewerProfile.EmailVerified = dr.GetBoolean(4); reviewerProfile.EmailVerificationCode = NullableData.GetGuid(dr, 5); reviewerProfile.IsDirty = false; }