ProNotion
08/08/2024, 8:42 AM[IgnorePropertyType("PropertyAlias")]
on our partial classes to prevent generation of properties when we needed to.
I note in the current docs for v13 it states...
"*Models builder does not take a custom partial class into account when generating the models. This means that if a custom partial class, inherits from a base class, tries to provide a constructor with the same signature, or implements a generated property, it will cause compilation errors.*"
This also means that any properties we explicitly define in our own partial classes are not considered when generating models which results in duplication of properties and therefore compilation errors.
The docs also state...
> For more complex partial classes, you'll have to use the full version of the Models Builder.
This doesn't seem like a viable solution given how old/stale the project now is.
How are others handling these issues currently?Jason
08/12/2024, 9:52 PMProperty => FormatDifferently(this.SomeOtherProperty);
I just live with the fact that there's redundant properties in my models these days.ProNotion
08/13/2024, 9:37 AMDean Leigh
08/13/2024, 11:23 AMProNotion
08/13/2024, 2:05 PMDean Leigh
08/13/2024, 2:17 PMDean Leigh
01/17/2025, 10:47 AM