コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContactTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContactTypes(ContactType contactType)
 {
     base.AddObject("ContactTypes", contactType);
 }
コード例 #2
0
 /// <summary>
 /// Create a new ContactType object.
 /// </summary>
 /// <param name="contactTypeID">Initial value of the ContactTypeID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static ContactType CreateContactType(global::System.Int32 contactTypeID, global::System.String name, global::System.DateTime modifiedDate)
 {
     ContactType contactType = new ContactType();
     contactType.ContactTypeID = contactTypeID;
     contactType.Name = name;
     contactType.ModifiedDate = modifiedDate;
     return contactType;
 }