DORSETRIGS
Home

t4 (4 post)


posts by category not found!

Is it possible to define a new class within a t4 template?

Can You Define a New Class Inside a T4 Template T4 templates also known as Text Template Transformation Toolkit are a powerful tool for code generation in NET B

2 min read 07-10-2024 23
Is it possible to define a new class within a t4 template?
Is it possible to define a new class within a t4 template?

How can I get the real Path from a Macro Path like $(TargetDir)?

Unmasking the Hidden Paths Decoding Macro Paths in Your Projects The Problem Imagine you re building a software project and need to access a specific file or di

2 min read 07-10-2024 56
How can I get the real Path from a Macro Path like $(TargetDir)?
How can I get the real Path from a Macro Path like $(TargetDir)?

T4 - TT - Using custom classes in TT files

T4 Templates Using Custom Classes in TT Files T4 templates offer a powerful way to generate code but sometimes you need to use custom classes defined in separat

2 min read 06-09-2024 36
T4 - TT - Using custom classes in TT files
T4 - TT - Using custom classes in TT files

Use T4 to replace HasDefaultValue with HasDefaultValueSql in EF Core 8

Taming the EF Core 8 Default Value Beast Replacing Has Default Value with Has Default Value Sql Upgrading from NET 7 to NET 8 can be a smooth ride but EF Core 8

2 min read 01-09-2024 44
Use T4 to replace HasDefaultValue with HasDefaultValueSql in EF Core 8
Use T4 to replace HasDefaultValue with HasDefaultValueSql in EF Core 8