csla icon indicating copy to clipboard operation
csla copied to clipboard

Create analyzer for AddObjectAuthorizationRules methods

Open rockfordlhotka opened this issue 5 years ago • 1 comments

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.

rockfordlhotka avatar Apr 13 '20 15:04 rockfordlhotka

Should be very similar to what DoesOperationHaveAttributeAnalyzer and DoesOperationHaveAttributeAddAttributeCodeFix does.

JasonBock avatar Feb 24 '21 13:02 JasonBock