-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make feature-dependent templates conditional
As we moved to compiled templates for EF/Dapper/Ulid, we need to only include those templates in the compilation if the user actually references the respective packages. For now, this is not an extensible mechanism nad we just detect the dependency on the relevant packages via MSBuild and remove the templates as needed. We moved the Ulid support for New() (mirroring the support we offer for TId.New() for Guids) since it can now be conditional too.
- Loading branch information
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
src/StructId.FunctionalTests/NewUlid.cs → src/StructId/Templates/NewableUlid.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters