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

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