-
Notifications
You must be signed in to change notification settings - Fork 122
SitecoreTypeAttribute
Mike Edwards edited this page Jan 21, 2019
·
1 revision
The SitecoreTypeAttrbute can be added to a class or interface to indicate to Glass.Mapper.Sc that the current type can be used for mapping.
[SitecoreType]
public class MyModel{
}
Name | Type | Description |
---|---|---|
TemplateId | string | The ID of the template to use when creating an item using this model. |
Branch ID | string | The ID of the branch to use when creating an item using this model. |
EnforceTemplate | SitecoreEnforceTemplate | Indiciates if templates check should happen when creating a model using the value specified by the TemplateId. |
Cache | Cache | Indicates if the model should be cached after creation. |
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.