Getting ALL the PreValues

To extract all the values from a data type in umbraco, you will need to use the new Services to correctly extract them

ApplicationContext.Current.Services.DataTypeService.GetPreValuesByDataTypeId(int);

umbraco.library is the previous way of extracting this information and will make it harder to upgrade your applications in the future

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s