/// <summary> /// Create a new Relationship object. /// </summary> /// <param name="relationshipId">Initial value of the RelationshipId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="created">Initial value of the Created property.</param> public static Relationship CreateRelationship(global::System.Int32 relationshipId, global::System.String name, global::System.DateTime created) { Relationship relationship = new Relationship(); relationship.RelationshipId = relationshipId; relationship.Name = name; relationship.Created = created; return relationship; }
/// <summary> /// Deprecated Method for adding a new object to the Relationships EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRelationships(Relationship relationship) { base.AddObject("Relationships", relationship); }