-
Notifications
You must be signed in to change notification settings - Fork 121
SitecoreInfoAttribute
Mike Edwards edited this page Jan 22, 2019
·
1 revision
Controls how Sitecore item meta-data is mapped to properties on a model.
public class MyModel{
[SitecoreInfo(Type=SitecoreInfoType.Url)]
public virtual string Url { get; set; }
}
Name | Type | Description |
---|---|---|
Type | SitecoreInfoType | Determines which type of metadata to map to the property. |
UrlOptions | SitecoreInfoUrlOptions | Controls how URLs are generated when Type is set to SitecoreInfoUrlOptions.Url. |
MediaUrlOptions | SitecoreInfoMediaUrlOptions | Controls how URLs are generated when Type is set to SitecoreInfoMediaUrlOptions.MediaUrl. |
Do you love Glass.Mapper.Sc and want to help make it the best Sitecore ORM?
Then head over to our Patreon page today and signup to support the project.
Your help will to support the continued development of the project.
We also provide Training Courses to get you up to speed quickly with the Glass.Mapper.Sc framework. The course will teach you everything you need to know to get started.