Esempio n. 1
0
 /// <summary>
 /// Create a new Friend object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="profileId">Initial value of the ProfileId property.</param>
 /// <param name="friendId">Initial value of the FriendId property.</param>
 public static Friend CreateFriend(global::System.Int32 id, global::System.Int32 profileId, global::System.Int32 friendId)
 {
     Friend friend = new Friend();
     friend.Id = id;
     friend.ProfileId = profileId;
     friend.FriendId = friendId;
     return friend;
 }
Esempio n. 2
0
 /// <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);
 }
 public FriendViewModel(Friend friend)
 {
     Friend = friend;
 }