People who code: we want your input. Take the Survey

Questions tagged [code-generation]

Question related to use of Code Generation tools such as TDS or Leprechaun to Item and Template create model classes

Filter by
Sorted by
Tagged with
2
votes
1answer
48 views

Passing Code Generation Properties to TDS T4 templates

I want to pass some additional parameters to my T4 code generation templates in my TDS projects. In the TDS Projects Code Generation properties tab, there is a field for passing additional code ...
1
vote
0answers
49 views

How do I configure Leprechaun field/type mapping at a feature level?

I've added the below configuration to a CodeGen.config file at the Feature level. The code is generated and put into the feature Template.cs file, but the mapping I've added isn't picked up. If I add ...
1
vote
1answer
140 views

What should my Leprechaun Configuration look like in a non-Helix project?

I'm trying to configure Sitecore Leprechaun to generate Glass models for my project, but no matter what I do, I can't seem to get it to work. My project folder structure looks like: /sitecore /...
1
vote
1answer
111 views

TDS Re-Generate Code only for one target Item

TDS allows to Re-Generate Code for all Items by clicking appropriate TDS project in VS Explorer. This process also is executed during item creating/changing (any synchronization stuff). Question - ...