/// <summary> /// Deprecated Method for adding a new object to the Relationship EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRelationship(Relationship relationship) { base.AddObject("Relationship", relationship); }
/// <summary> /// Create a new Relationship object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="married">Initial value of the Married property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="deleted">Initial value of the Deleted property.</param> /// <param name="marriedToYou">Initial value of the MarriedToYou property.</param> public static Relationship CreateRelationship(global::System.Guid id, global::System.Boolean married, global::System.DateTime createdDate, global::System.Boolean deleted, global::System.Boolean marriedToYou) { Relationship relationship = new Relationship(); relationship.Id = id; relationship.Married = married; relationship.CreatedDate = createdDate; relationship.Deleted = deleted; relationship.MarriedToYou = marriedToYou; return relationship; }