Let's say I have several custom templates in my solution that are managed via a TDS project. There's also code generation set up that creates strongly-typed Glass models based on GlassV3Item.tt.
I want to be able to add custom [SitecoreField]
attribute values for some of my template fields.
For example, one of the fields is generated like this:
[SitecoreField(SomeTemplateConstants.TagsFieldName)]
IEnumerable<ITag> Tags { get; set; }
I want to disable lazy loading for this field, so that it's generated like this instead:
[SitecoreField(SomeTemplateConstants.TagsFieldName, Setting = SitecoreFieldSettings.DontLoadLazily)]
IEnumerable<ITag> Tags { get; set; }
I'd like this custom field setting to be configurable via the TDS project.
How can I achieve this?