The AutoImplementProperties generator is creating some implementation code that is triggering the CSLA0007 analyzer. This needs to be reconciled - either the generator or analyzer is wrong.
S:\src\rdl\csla\Samples\BlazorExample\BlazorExample\BusinessLibrary\obj\Debug\net9.0\generated\Csla.Generator.AutoImplementProperties.CSharp\Csla.Generator.AutoImplementProperties.CSharp.AutoImplement.IncrementalAutoImplementPropertiesPartialsGenerator\PersonEdit.g.cs(13,7): warning CSLA0007: Properties that use managed backing fields should only use Get/Set/Read/Load methods and nothing else (https://github.com/MarimerLLC/csla/tree/main/docs/analyzers/CSLA0007-EvaluatePropertiesForSimplicityAnalyzer.md)
Thinking about this further, I think we don't care if the generator conforms exactly to the needs of the analyzer. The analyzer exists to help human developers.
The solution is to suppress the analyzer in the generated code file.
This means updating the Csla.Generator.AutoImplementProperties generator so when it creates the partial class with the property implementations, it should suppress CSLA0007 for that file without affecting any other files.
The AutoImplementProperties generator is creating some implementation code that is triggering the CSLA0007 analyzer. This needs to be reconciled - either the generator or analyzer is wrong.
Thinking about this further, I think we don't care if the generator conforms exactly to the needs of the analyzer. The analyzer exists to help human developers.
The solution is to suppress the analyzer in the generated code file.
This means updating the
Csla.Generator.AutoImplementPropertiesgenerator so when it creates the partial class with the property implementations, it should suppress CSLA0007 for that file without affecting any other files.