Generalize value templates too, automatically adding Ulid to Dapper#40
Generalize value templates too, automatically adding Ulid to Dapper#40
Conversation
🧪 Details on macOS Unix 14.7.1✅ StructId.CodeTemplateTests.AddsStructIdNamespace 🧪 Details on Ubuntu 22.04.5 LTS✅ StructId.CodeTemplateTests.AddsStructIdNamespace 🧪 Details on Microsoft Windows 10.0.20348✅ StructId.CodeTemplateTests.AddsStructIdNamespace from dotnet-retest v0.6.3 on .NET 8.0.11 with 💜 |
A new templatized value feature allows built-in compiled template support for Ulid as a value type for struct ids. The template follows the same pattern as the struct id template (pending analyzer/codefix) and the dapper generator has been extended to consider them when emitting the registration code. We keep the original custom handler support too, which would still win over templatized one if users provide a type handler in the compilation themselves (as shown in the functional tests via the `StringUlidHandler` type.
8c4ada7 to
6e537da
Compare
A new templatized value feature allows built-in compiled template support for Ulid as a value type for struct ids. The template follows the same pattern as the struct id template (pending analyzer/codefix) and the dapper generator has been extended to consider them when emitting the registration code.
We keep the original custom handler support too, which would still win over templatized one if users provide a type handler in the compilation themselves (as shown in the functional tests via the
StringUlidHandlertype.