コード例 #1
0
        public int Create()
        {
            _contentDefinitionManager.AlterPartDefinition("EmailTemplatePart", builder => builder
                                                          .WithDisplayName("Email Template")
                                                          .WithDescription("Assign an email template to the content type")
                                                          .Attachable());

            _contentDefinitionManager.MigratePartSettings <EmailTemplatePart, EmailTemplatePartSettings>();

            return(1);
        }
コード例 #2
0
        // Migrate PartSettings. This only needs to run on old content definition schemas.
        // This code can be removed in a later version.
        public int UpdateFrom1()
        {
            _contentDefinitionManager.MigratePartSettings <ListPart, ListPartSettings>();

            return(2);
        }
コード例 #3
0
 public int UpdateFrom2()
 {
     _contentDefinitionManager.MigratePartSettings <ProfileGroupPart, ProfileGroupPartSettings>();
     return(3);
 }
コード例 #4
0
        // Migrate PartSettings. This only needs to run on old content definition schemas.
        // This code can be removed in a later version.
        public int UpdateFrom2()
        {
            _contentDefinitionManager.MigratePartSettings <BagPart, BagPartSettings>();

            return(3);
        }
コード例 #5
0
        public int UpdateFrom3()
        {
            _contentDefinitionManager.MigratePartSettings <SubscriptionLevelPart, SubscriptionLevelPartSettings>();

            return(4);
        }