public static Template Map(this CampaignTemplateEntity entity) { return(new Template { Subject = entity.subject, Body = entity.body }); }
public static CampaignTemplateEntity Map(this Template template, Guid campaignId) { var entity = new CampaignTemplateEntity { id = campaignId }; template.MapTo(entity); return(entity); }
public static void MapTo(this Template template, CampaignTemplateEntity entity) { entity.subject = template.Subject; entity.body = template.Body; }
partial void DeleteCampaignTemplateEntity(CampaignTemplateEntity instance);
partial void InsertCampaignTemplateEntity(CampaignTemplateEntity instance);