Exemplo n.º 1
0
 /// <summary>
 /// Create a new Friendship object.
 /// </summary>
 /// <param name="friendshipID">Initial value of the FriendshipID property.</param>
 /// <param name="clientID">Initial value of the ClientID property.</param>
 /// <param name="friendID">Initial value of the FriendID property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static Friendship CreateFriendship(global::System.Int32 friendshipID, global::System.Int32 clientID, global::System.Int32 friendID, global::System.Boolean status)
 {
     Friendship friendship = new Friendship();
     friendship.FriendshipID = friendshipID;
     friendship.ClientID = clientID;
     friendship.FriendID = friendID;
     friendship.Status = status;
     return friendship;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Friendships EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFriendships(Friendship friendship)
 {
     base.AddObject("Friendships", friendship);
 }