-
Notifications
You must be signed in to change notification settings - Fork 121
SitecoreFieldAttribute
Mike Edwards edited this page Jan 22, 2019
·
1 revision
Controls how Sitecore field are mapped to a property.
public class MyModel{
[SitecoreField]
public virtual string MyField { get; set; }
}
Name | Type | Description |
---|---|---|
FieldName | string | The name of the Sitecore field to import. |
FieldId | string | The ID of the filed to import. If the field ID and name are specified then the field ID is used. |
Setting | SitecoreFieldSettings | Used to control how field data is mapped. |
MediaUrlOptions | SitecoreMediaUrlOptions | Controls how media URLs are generated when mapping Glass.Mapper.Sc.Fields.Image properties. |
UrlOptions | SitecoreUrlOptions | ontrols how URLs are generated when mapping Glass.Mapper.Sc.Fields.Link properties. |
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.