コード例 #1
0
 /// <summary>
 /// Create a new SponsorRelationship object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="relationship">Initial value of the Relationship property.</param>
 /// <param name="isPrimary">Initial value of the IsPrimary property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 /// <param name="client_RelationshipType">Initial value of the Client_RelationshipType property.</param>
 /// <param name="sponsor_RelationshipType">Initial value of the Sponsor_RelationshipType property.</param>
 public static SponsorRelationship CreateSponsorRelationship(global::System.Int32 id, global::System.String relationship, global::System.Boolean isPrimary, global::System.Byte[] rowVersion, global::System.Int32 client_RelationshipType, global::System.Int32 sponsor_RelationshipType)
 {
     SponsorRelationship sponsorRelationship = new SponsorRelationship();
     sponsorRelationship.Id = id;
     sponsorRelationship.Relationship = relationship;
     sponsorRelationship.IsPrimary = isPrimary;
     sponsorRelationship.RowVersion = rowVersion;
     sponsorRelationship.Client_RelationshipType = client_RelationshipType;
     sponsorRelationship.Sponsor_RelationshipType = sponsor_RelationshipType;
     return sponsorRelationship;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SponsorRelationships EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSponsorRelationships(SponsorRelationship sponsorRelationship)
 {
     base.AddObject("SponsorRelationships", sponsorRelationship);
 }