This project is read-only.

adding to the ProfilePart duringa module migration

Jan 21, 2012 at 3:34 AM


I am writing a module for a language website. I have a part dealing with Languages the user speaks and the level at which they speak that language. I'm wondering whether I can add this as an extension of the profilePart during migration usingAlterTypeDefinition, as follows:

    ContentDefinitionManager.AlterTypeDefinition("ProfilePart", cfg => cfg.WithPart(typeof(UserSpokenLanguagesPart).Name));

Any help apreciated.