csla
csla copied to clipboard
Create analyzer for AddObjectAuthorizationRules methods
In the past people would use the "well-known" AddObjectAuthorizationRules name for the static method that established per-type rules.
Now people should be using the ObjectAuthorizationRules attribute to identify the static method that establishes per-type rules. They can name the method as they choose.
It would be ideal to have an analyzer that identifies the old-style approach, and offers a fix to add the new attribute.
Should be very similar to what DoesOperationHaveAttributeAnalyzer and DoesOperationHaveAttributeAddAttributeCodeFix does.