Skip to content

Commit

Permalink
Fix the syntax in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Jul 3, 2024
1 parent 8797b82 commit a83e066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NexusMods.MnemonicDB.SourceGenerator/Template.weave
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public partial class {{= model.Name}} : __MODELS__.IModelFactory<{{= model.Name}

{{each include in model.Includes}}
public required {{= include.ToDisplayString()}}.New {{= include.Name}} {
init => {
init {
if (Id != value.Id)
throw new InvalidOperationException("The id of the included entity must match the id of the including entity.");
}
Expand Down

0 comments on commit a83e066

Please sign in to comment.