コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Organization EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrganization(Organization organization)
 {
     base.AddObject("Organization", organization);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Organization object.
 /// </summary>
 /// <param name="organizationID">Initial value of the OrganizationID property.</param>
 /// <param name="organizationName">Initial value of the OrganizationName property.</param>
 public static Organization CreateOrganization(global::System.Int32 organizationID, global::System.String organizationName)
 {
     Organization organization = new Organization();
     organization.OrganizationID = organizationID;
     organization.OrganizationName = organizationName;
     return organization;
 }