difference between content field and use database field to store data

Topics: Customizing Orchard, Writing modules
Nov 9, 2013 at 7:06 PM
I need to store many data for a content type.
I see in Pluralsight advanced course that the presenter use model and migration code to generate database for storing data.
Now my question:
Is it not possible to store data in many simple field instead of database??
Because orchard field almost perfect.
Developer
Nov 9, 2013 at 10:20 PM
About the difference between content field and part (because I assume the latter is what you mean): http://orcharddojo.net/orchard-resources/Library/Wiki/ContentField

You can also store data in the so called infoset of the content item (basically an XML that's stored along the core content item record) directly (this is also what fields use in the background) through InfosetPart. Take a look at the new TheShift branch in the source how it can be used with the new APIs (not yet released). Long story short for the current release: you can use this.As<InfosetPart>().Get/Set from inside your content part's properties to store everything in the infoset.
Developer
Nov 9, 2013 at 10:20 PM
About the difference between content field and part (because I assume the latter is what you mean): http://orcharddojo.net/orchard-resources/Library/Wiki/ContentField

You can also store data in the so called infoset of the content item (basically an XML that's stored along the core content item record) directly (this is also what fields use in the background) through InfosetPart. Take a look at the new TheShift branch in the source how it can be used with the new APIs (not yet released). Long story short for the current release: you can use this.As<InfosetPart>().Get/Set from inside your content part's properties to store everything in the infoset.