/// <summary>
 /// Deprecated Method for adding a new object to the UserProfile EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserProfile(UserProfile userProfile)
 {
     base.AddObject("UserProfile", userProfile);
 }
 /// <summary>
 /// Create a new UserProfile object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static UserProfile CreateUserProfile(global::System.Int32 userId)
 {
     UserProfile userProfile = new UserProfile();
     userProfile.UserId = userId;
     return userProfile;
 }
 private void DetachUserProfile(UserProfile entity)
 {
     entity.UserProfession = null;
 }
 private bool FilterUserProfile(UserProfile entity)
 {
     return (entity.UserId == this.Id);
 }
 private void AttachUserProfile(UserProfile entity)
 {
     entity.UserProfession = this;
 }