///<summary> /// Returns a Typed VStoreWithDemographicsBase Entity ///</summary> public virtual VStoreWithDemographicsBase Copy() { //shallow copy entity VStoreWithDemographics copy = new VStoreWithDemographics(); copy.CustomerId = this.CustomerId; copy.Name = this.Name; copy.ContactType = this.ContactType; copy.Title = this.Title; copy.FirstName = this.FirstName; copy.MiddleName = this.MiddleName; copy.LastName = this.LastName; copy.Suffix = this.Suffix; copy.Phone = this.Phone; copy.EmailAddress = this.EmailAddress; copy.EmailPromotion = this.EmailPromotion; copy.AddressType = this.AddressType; copy.AddressLine1 = this.AddressLine1; copy.AddressLine2 = this.AddressLine2; copy.City = this.City; copy.StateProvinceName = this.StateProvinceName; copy.PostalCode = this.PostalCode; copy.CountryRegionName = this.CountryRegionName; copy.AnnualSales = this.AnnualSales; copy.AnnualRevenue = this.AnnualRevenue; copy.BankName = this.BankName; copy.BusinessType = this.BusinessType; copy.YearOpened = this.YearOpened; copy.Specialty = this.Specialty; copy.SquareFeet = this.SquareFeet; copy.Brands = this.Brands; copy.Internet = this.Internet; copy.NumberEmployees = this.NumberEmployees; copy.AcceptChanges(); return (VStoreWithDemographics)copy; }
/// <summary> /// Convert a nettiers collection to the ws proxy collection. /// </summary> public static VStoreWithDemographics Convert(WsProxy.VStoreWithDemographics item) { VStoreWithDemographics outItem = new VStoreWithDemographics(); outItem.CustomerId = item.CustomerId; outItem.Name = item.Name; outItem.ContactType = item.ContactType; outItem.Title = item.Title; outItem.FirstName = item.FirstName; outItem.MiddleName = item.MiddleName; outItem.LastName = item.LastName; outItem.Suffix = item.Suffix; outItem.Phone = item.Phone; outItem.EmailAddress = item.EmailAddress; outItem.EmailPromotion = item.EmailPromotion; outItem.AddressType = item.AddressType; outItem.AddressLine1 = item.AddressLine1; outItem.AddressLine2 = item.AddressLine2; outItem.City = item.City; outItem.StateProvinceName = item.StateProvinceName; outItem.PostalCode = item.PostalCode; outItem.CountryRegionName = item.CountryRegionName; outItem.AnnualSales = item.AnnualSales; outItem.AnnualRevenue = item.AnnualRevenue; outItem.BankName = item.BankName; outItem.BusinessType = item.BusinessType; outItem.YearOpened = item.YearOpened; outItem.Specialty = item.Specialty; outItem.SquareFeet = item.SquareFeet; outItem.Brands = item.Brands; outItem.Internet = item.Internet; outItem.NumberEmployees = item.NumberEmployees; outItem.AcceptChanges(); return outItem; }