DapperLib / DapperAOT

Build time tools in the flavor of Dapper
Other
357 stars 19 forks source link

Warn about ambiguous properties/fields #65

Closed mgravell closed 6 months ago

mgravell commented 10 months ago

See https://github.com/DapperLib/Dapper/issues/1993

The properties FirstName and First_Name are ambiguous. Dapper (core, haven't checked AOT) prefers properties over fields, but there was a glitch where ambiguous properties could get conflated.

We should warn if:

We should also verify that AOT prefers properties over fields (this isn't a warning: this is a library requirement)

This analyzer applies with+without AOT enabled.