protected virtual IContactMechStateMergePatched Map(IMergePatchContactMech c) { var stateEventId = new ContactMechEventId(c.ContactMechId, c.Version); IContactMechStateMergePatched e = NewContactMechStateMergePatched(stateEventId); e.ContactMechTypeId = c.ContactMechTypeId; e.InfoString = c.InfoString; e.ToName = c.ToName; e.AttnName = c.AttnName; e.Address1 = c.Address1; e.Address2 = c.Address2; e.Directions = c.Directions; e.City = c.City; e.PostalCode = c.PostalCode; e.PostalCodeExt = c.PostalCodeExt; e.CountryGeoId = c.CountryGeoId; e.StateProvinceGeoId = c.StateProvinceGeoId; e.CountyGeoId = c.CountyGeoId; e.PostalCodeGeoId = c.PostalCodeGeoId; e.GeoPointId = c.GeoPointId; e.CountryCode = c.CountryCode; e.AreaCode = c.AreaCode; e.ContactNumber = c.ContactNumber; e.AskForName = c.AskForName; e.Active = c.Active; e.IsPropertyContactMechTypeIdRemoved = c.IsPropertyContactMechTypeIdRemoved; e.IsPropertyInfoStringRemoved = c.IsPropertyInfoStringRemoved; e.IsPropertyToNameRemoved = c.IsPropertyToNameRemoved; e.IsPropertyAttnNameRemoved = c.IsPropertyAttnNameRemoved; e.IsPropertyAddress1Removed = c.IsPropertyAddress1Removed; e.IsPropertyAddress2Removed = c.IsPropertyAddress2Removed; e.IsPropertyDirectionsRemoved = c.IsPropertyDirectionsRemoved; e.IsPropertyCityRemoved = c.IsPropertyCityRemoved; e.IsPropertyPostalCodeRemoved = c.IsPropertyPostalCodeRemoved; e.IsPropertyPostalCodeExtRemoved = c.IsPropertyPostalCodeExtRemoved; e.IsPropertyCountryGeoIdRemoved = c.IsPropertyCountryGeoIdRemoved; e.IsPropertyStateProvinceGeoIdRemoved = c.IsPropertyStateProvinceGeoIdRemoved; e.IsPropertyCountyGeoIdRemoved = c.IsPropertyCountyGeoIdRemoved; e.IsPropertyPostalCodeGeoIdRemoved = c.IsPropertyPostalCodeGeoIdRemoved; e.IsPropertyGeoPointIdRemoved = c.IsPropertyGeoPointIdRemoved; e.IsPropertyCountryCodeRemoved = c.IsPropertyCountryCodeRemoved; e.IsPropertyAreaCodeRemoved = c.IsPropertyAreaCodeRemoved; e.IsPropertyContactNumberRemoved = c.IsPropertyContactNumberRemoved; e.IsPropertyAskForNameRemoved = c.IsPropertyAskForNameRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
public virtual void MergePatch(IMergePatchContactMech c) { IContactMechStateMergePatched e = Map(c); Apply(e); }
public virtual void When(IMergePatchContactMech c) { Update(c, ar => ar.MergePatch(c)); }
void IContactMechApplicationService.When(IMergePatchContactMech c) { this.When((MergePatchContactMechDto)c); }