Skip to content

SitecoreItemAttribute

Mike Edwards edited this page Jan 23, 2019 · 1 revision

Controls how Sitecore item being mapped is mapped to a property on a model.

The property must be one of the following return types:

  • Sitecore.Data.Items.Item
public class MyModel{

    [SitecoreItem]
    public virtual Item Item { get; set; }

}

Properties

Name Type Description

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.

Clone this wiki locally