Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EntityRelationships EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEntityRelationships(EntityRelationship entityRelationship)
 {
     base.AddObject("EntityRelationships", entityRelationship);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new EntityRelationship object.
 /// </summary>
 /// <param name="attributeID">Initial value of the AttributeID property.</param>
 /// <param name="parentEntityID">Initial value of the ParentEntityID property.</param>
 /// <param name="sortOrder">Initial value of the SortOrder property.</param>
 public static EntityRelationship CreateEntityRelationship(global::System.Int32 attributeID, global::System.Int32 parentEntityID, global::System.Int32 sortOrder)
 {
     EntityRelationship entityRelationship = new EntityRelationship();
     entityRelationship.AttributeID = attributeID;
     entityRelationship.ParentEntityID = parentEntityID;
     entityRelationship.SortOrder = sortOrder;
     return entityRelationship;
 }