コード例 #1
0
ファイル: EduNuke1.Designer.cs プロジェクト: MSAS/edunuke
 partial void OnNameChanging(Name value);
コード例 #2
0
ファイル: EduNuke1.Designer.cs プロジェクト: MSAS/edunuke
 /// <summary>
 /// Create a new Name object.
 /// </summary>
 /// <param name="first">Initial value of the First property.</param>
 /// <param name="middle">Initial value of the Middle property.</param>
 /// <param name="last">Initial value of the Last property.</param>
 public static Name CreateName(global::System.String first, global::System.String middle, global::System.String last)
 {
     Name name = new Name();
     name.First = first;
     name.Middle = middle;
     name.Last = last;
     return name;
 }
コード例 #3
0
ファイル: EduNuke1.Designer.cs プロジェクト: MSAS/edunuke
 /// <summary>
 /// Create a new User object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="contact">Initial value of the Contact property.</param>
 /// <param name="postalAddress">Initial value of the PostalAddress property.</param>
 /// <param name="permanentAddress">Initial value of the PermanentAddress property.</param>
 /// <param name="dOB">Initial value of the DOB property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static User CreateUser(global::System.Int32 id, Name name, ContactInfo contact, Address postalAddress, Address permanentAddress, global::System.DateTime dOB, global::System.String status)
 {
     User user = new User();
     user.Id = id;
     user.Name = StructuralObject.VerifyComplexObjectIsNotNull(name, "Name");
     user.Contact = StructuralObject.VerifyComplexObjectIsNotNull(contact, "Contact");
     user.PostalAddress = StructuralObject.VerifyComplexObjectIsNotNull(postalAddress, "PostalAddress");
     user.PermanentAddress = StructuralObject.VerifyComplexObjectIsNotNull(permanentAddress, "PermanentAddress");
     user.DOB = dOB;
     user.Status = status;
     return user;
 }