Getting code from content definition

Topics: Customizing Orchard, Writing modules
Jan 8, 2015 at 1:07 AM
Hi.
I just wrote some code in Orchard.ContentType to get the source code necesary to create a content part and a content item in migration. I edited the views so when you edit any part or item in admin you also get the code to copy/paste in your migration file, this way you can use the backend to create them quickly.

Examples:
Type
Image

Part
Image

If someone finds this useful I could share the code.