using Application.Core.ProfileModule.AddressAggregate; using Application.Core.ProfileModule.ProfileAggregate; using System; namespace Application.Core.ProfileModule.ProfileAddressAggregate { /// <summary> /// This is the factory for Phone creation /// </summary> public static class ProfileAddressFactory { public static ProfileAddress ProfileAddress(Profile profile, Address address, AddressType addressType, string createdBy, DateTime created, string updatedBy, DateTime updated) { ProfileAddress objProfileAddress = new ProfileAddress(); //Set values for Address objProfileAddress.Created = created; objProfileAddress.CreatedBy = createdBy; objProfileAddress.Updated = updated; objProfileAddress.UpdatedBy = updatedBy; //Associate Profile for this Profile Phone objProfileAddress.ProfileId = profile.ProfileId; //Associate Address for this Profile Phone objProfileAddress.AddressId = address.AddressId; //Associate AddressTye for this Profile Phone objProfileAddress.AddressTypeId = addressType.AddressTypeId; return objProfileAddress; } } }
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Math Primers for Programmers