예제 #1
0
 /// <summary>
 /// Create a new UserRelationship object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="fromUserID">Initial value of the FromUserID property.</param>
 /// <param name="toUserID">Initial value of the ToUserID property.</param>
 /// <param name="relationshipTypeID">Initial value of the RelationshipTypeID property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 public static UserRelationship CreateUserRelationship(global::System.Int64 id, global::System.Int64 fromUserID, global::System.Int64 toUserID, global::System.Int64 relationshipTypeID, global::System.DateTime createDate)
 {
     UserRelationship userRelationship = new UserRelationship();
     userRelationship.ID = id;
     userRelationship.FromUserID = fromUserID;
     userRelationship.ToUserID = toUserID;
     userRelationship.RelationshipTypeID = relationshipTypeID;
     userRelationship.CreateDate = createDate;
     return userRelationship;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserRelationships EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserRelationships(UserRelationship userRelationship)
 {
     base.AddObject("UserRelationships", userRelationship);
 }