/// <summary>
 /// Deprecated Method for adding a new object to the Friends EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFriends(Friend friend)
 {
     base.AddObject("Friends", friend);
 }
 /// <summary>
 /// Create a new Friend object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="friendUserId">Initial value of the FriendUserId property.</param>
 /// <param name="sourceUserId">Initial value of the SourceUserId property.</param>
 /// <param name="approved">Initial value of the Approved property.</param>
 public static Friend CreateFriend(global::System.Int32 id, global::System.Int32 friendUserId, global::System.Int32 sourceUserId, global::System.Boolean approved)
 {
     Friend friend = new Friend();
     friend.Id = id;
     friend.FriendUserId = friendUserId;
     friend.SourceUserId = sourceUserId;
     friend.Approved = approved;
     return friend;
 }