Пример #1
0
 /// <summary>
 /// Create a new ContactPerson object.
 /// </summary>
 /// <param name="contactPersonID">Initial value of the ContactPersonID property.</param>
 /// <param name="marketID">Initial value of the MarketID property.</param>
 /// <param name="entityScope">Initial value of the EntityScope property.</param>
 /// <param name="entityID">Initial value of the EntityID property.</param>
 /// <param name="contactPersonType">Initial value of the ContactPersonType property.</param>
 /// <param name="salt">Initial value of the Salt property.</param>
 /// <param name="token">Initial value of the Token property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="lastModified">Initial value of the LastModified property.</param>
 /// <param name="version">Initial value of the Version property.</param>
 public static ContactPerson CreateContactPerson(global::System.Int32 contactPersonID, global::System.Int32 marketID, global::System.Int32 entityScope, global::System.Int32 entityID, global::System.Int32 contactPersonType, global::System.String salt, global::System.String token, global::System.DateTime created, global::System.DateTime lastModified, global::System.Byte[] version)
 {
     ContactPerson contactPerson = new ContactPerson();
     contactPerson.ContactPersonID = contactPersonID;
     contactPerson.MarketID = marketID;
     contactPerson.EntityScope = entityScope;
     contactPerson.EntityID = entityID;
     contactPerson.ContactPersonType = contactPersonType;
     contactPerson.Salt = salt;
     contactPerson.Token = token;
     contactPerson.Created = created;
     contactPerson.LastModified = lastModified;
     contactPerson.Version = version;
     return contactPerson;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContactPersons EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContactPersons(ContactPerson contactPerson)
 {
     base.AddObject("ContactPersons", contactPerson);
 }