Update method when properties are not readonly
This commit is contained in:
parent
1e266bfd3f
commit
b44f5b2fe5
|
@ -33,7 +33,7 @@ namespace MapTo.Sources
|
|||
.GeneratePrivateConstructor(model)
|
||||
.WriteLine();
|
||||
|
||||
if(PropertiesAreReadOnly(model))
|
||||
if(!PropertiesAreReadOnly(model))
|
||||
{
|
||||
builder.GenerateUpdateMethod(model);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue