Beispiel #1
0
 public static Template Map(this CampaignTemplateEntity entity)
 {
     return(new Template
     {
         Subject = entity.subject,
         Body = entity.body
     });
 }
Beispiel #2
0
        public static CampaignTemplateEntity Map(this Template template, Guid campaignId)
        {
            var entity = new CampaignTemplateEntity {
                id = campaignId
            };

            template.MapTo(entity);
            return(entity);
        }
Beispiel #3
0
 public static void MapTo(this Template template, CampaignTemplateEntity entity)
 {
     entity.subject = template.Subject;
     entity.body    = template.Body;
 }
Beispiel #4
0
 partial void DeleteCampaignTemplateEntity(CampaignTemplateEntity instance);
Beispiel #5
0
 partial void InsertCampaignTemplateEntity(CampaignTemplateEntity instance);