/// <summary>
 /// Deprecated Method for adding a new object to the ProfileActivities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProfileActivities(ProfileActivity profileActivity)
 {
     base.AddObject("ProfileActivities", profileActivity);
 }
 /// <summary>
 /// Create a new ProfileActivity object.
 /// </summary>
 /// <param name="activityId">Initial value of the ActivityId property.</param>
 /// <param name="profileId">Initial value of the ProfileId property.</param>
 /// <param name="activityTypeId">Initial value of the ActivityTypeId property.</param>
 /// <param name="creationDateTime">Initial value of the CreationDateTime property.</param>
 public static ProfileActivity CreateProfileActivity(global::System.Int32 activityId, global::System.Int32 profileId, global::System.Int32 activityTypeId, global::System.DateTime creationDateTime)
 {
     ProfileActivity profileActivity = new ProfileActivity();
     profileActivity.ActivityId = activityId;
     profileActivity.ProfileId = profileId;
     profileActivity.ActivityTypeId = activityTypeId;
     profileActivity.CreationDateTime = creationDateTime;
     return profileActivity;
 }