SqlCodeAnalysisRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for SQL static code analysis rules. An analysis rule analyzes a model / model element and returns a list of problems found during analysis.
Implementing classes must have a ExportCodeAnalysisRuleAttribute defined on the class definition to be discovered and used during code analysis.
public abstract class SqlCodeAnalysisRule : Microsoft.SqlServer.Dac.CodeAnalysis.SqlAnalysisRule
type SqlCodeAnalysisRule = class
inherit SqlAnalysisRule
Public MustInherit Class SqlCodeAnalysisRule
Inherits SqlAnalysisRule
- Inheritance
Constructors
SqlCodeAnalysisRule() |
Properties
SupportedElementTypes |
Types of elements checked by this rule. Required if the rule scope is Element, for Model scoped rules this is not relevant (Inherited from SqlAnalysisRule) |
Methods
Analyze(SqlRuleExecutionContext) |
Performs analysis and returns a list of problems detected (Inherited from SqlAnalysisRule) |