Adding a numeric field via migration

Topics: Writing modules
Aug 24, 2012 at 1:21 PM

Hey everyone,

I'm trying to add a numeric field to a content item but it doesn't show up in the admin when editing the content item, i also don't get any errors:

Here's my code in the migration, what could be wrong?

 ContentDefinitionManager.AlterPartDefinition("Student_Item", builder =>
                fieldBuilder => fieldBuilder

Aug 24, 2012 at 4:44 PM

Nevermind, I've solved it


ContentDefinitionManager.AlterTypeDefinition("Student_Item", builder =>

Also had to stop the development server (vs2010) and delete the mappings.bin for the changes to come through