示例#1
0
 public ContactTypeViewModel(ContactType contactType)
 {
     if (contactType == null)
     {
         throw new ArgumentNullException("contactType");
     }
     this.Model = contactType;
 }
示例#2
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);
 }
示例#3
0
 /// <summary>
 /// Create a new ContactType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="sourceId">Initial value of the SourceId property.</param>
 public static ContactType CreateContactType(global::System.Guid id, global::System.String name, global::System.String code, global::System.Int32 sourceId)
 {
     ContactType contactType = new ContactType();
     contactType.Id = id;
     contactType.Name = name;
     contactType.Code = code;
     contactType.SourceId = sourceId;
     return contactType;
 }