/// <summary> /// To the model. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public static MarketingCampaignAd ToModel(this MarketingCampaignAdDto value) { MarketingCampaignAd result = new MarketingCampaignAd(); value.CopyToModel(result); return(result); }
/// <summary> /// Clones this MarketingCampaignAd object to a new MarketingCampaignAd object /// </summary> /// <param name="source">The source.</param> /// <param name="deepCopy">if set to <c>true</c> a deep copy is made. If false, only the basic entity properties are copied.</param> /// <returns></returns> public static MarketingCampaignAd Clone(this MarketingCampaignAd source, bool deepCopy) { if (deepCopy) { return(source.Clone() as MarketingCampaignAd); } else { var target = new MarketingCampaignAd(); target.CopyPropertiesFrom(source); return(target); } }
/// <summary> /// Copies the properties from another MarketingCampaignAd object to this MarketingCampaignAd object /// </summary> /// <param name="target">The target.</param> /// <param name="source">The source.</param> public static void CopyPropertiesFrom(this MarketingCampaignAd target, MarketingCampaignAd source) { target.MarketingCampaignId = source.MarketingCampaignId; target.MarketingCampaignAdTypeId = source.MarketingCampaignAdTypeId; target.Priority = source.Priority; target.MarketingCampaignAdStatus = source.MarketingCampaignAdStatus; target.MarketingCampaignStatusPersonId = source.MarketingCampaignStatusPersonId; target.StartDate = source.StartDate; target.EndDate = source.EndDate; target.Url = source.Url; target.Id = source.Id; target.Guid = source.Guid; }
/// <summary> /// Instantiates a new DTO object from the entity /// </summary> /// <param name="marketingCampaignAd"></param> public MarketingCampaignAdDto(MarketingCampaignAd marketingCampaignAd) { CopyFromModel(marketingCampaignAd); }
/// <summary> /// To the dto. /// </summary> /// <param name="value">The value.</param> /// <returns></returns> public static MarketingCampaignAdDto ToDto(this MarketingCampaignAd value) { return(new MarketingCampaignAdDto(value)); }