Content Part not available

Topics: Customizing Orchard, Writing modules
Nov 25, 2012 at 5:42 PM

I'm following the documentation on writing a content part: 
http://docs.orchardproject.net/Documentation/Writing-a-content-part

I've created the various files as directed and enabled my 'Maps' module however when I try at add the part to the Page content type it's not available as an option.

I'm guessing that perhaps the migration hasn't ran for some reason? The instructions are geared towards VS but I'm trying to do so in WebMatrix which I'm assuming isn't the problem?

Any help appreciated

Nov 25, 2012 at 6:26 PM

After a bit more digging certainly seems like the migration isn't being actioned as the table isn't being created.

Is there anything other than the presence of Migration.cs and including <Compile Include="Migrations.cs" /> in csproj needed for a module to execute its migration?

Nov 25, 2012 at 6:40 PM

Turns out the migration silently failed because I hadn't included the appropriate using statement for my model class