This project is read-only.

EnumerationFieldSettings.Options using migration

Topics: Customizing Orchard, Writing modules
Nov 25, 2014 at 4:17 AM
I created a module with a migration file to build my custom content types. From some of these types, I need to add an enumeration field to the content part like so:
                .WithField("UsageType", cfg => cfg
                    .WithDisplayName("Usage Type"))
                            new[] { "Foo", "Bar" }))
When I install the module, the type and part get created correctly but the options do not appear in the enumeration field.

Am I missing something in my code? Using 1.7.1 by the way.