Update method when properties are not readonly

This commit is contained in:
Wvader 2021-12-07 12:49:31 +00:00
parent 1e266bfd3f
commit b44f5b2fe5
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ namespace MapTo.Sources
.GeneratePrivateConstructor(model) .GeneratePrivateConstructor(model)
.WriteLine(); .WriteLine();
if(PropertiesAreReadOnly(model)) if(!PropertiesAreReadOnly(model))
{ {
builder.GenerateUpdateMethod(model); builder.GenerateUpdateMethod(model);
} }