Exemple #1
0
        /// <summary>
        /// Create a new EmployeeAddress object.
        /// </summary>
        /// <param name="address">Initial value of the Address property.</param>
        /// <param name="city">Initial value of the City property.</param>
        /// <param name="state">Initial value of the State property.</param>
        /// <param name="zIP">Initial value of the ZIP property.</param>
        public static EmployeeAddress CreateEmployeeAddress(global::System.String address, global::System.String city, global::System.String state, global::System.String zIP)
        {
            EmployeeAddress employeeAddress = new EmployeeAddress();

            employeeAddress.Address = address;
            employeeAddress.City    = city;
            employeeAddress.State   = state;
            employeeAddress.ZIP     = zIP;
            return(employeeAddress);
        }
Exemple #2
0
 partial void OnAddressChanging(EmployeeAddress value);
Exemple #3
0
        /// <summary>
        /// Create a new Employee object.
        /// </summary>
        /// <param name="employeeId">Initial value of the EmployeeId property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="address">Initial value of the Address property.</param>
        public static Employee CreateEmployee(global::System.Int32 employeeId, global::System.String name, EmployeeAddress address)
        {
            Employee employee = new Employee();

            employee.EmployeeId = employeeId;
            employee.Name       = name;
            employee.Address    = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address");
            return(employee);
        }