Microsoft.Data.Schema.StaticCodeAnalysis 命名空间提供可用于创建和管理静态代码分析规则的类。
类
| 类 | 说明 | |
|---|---|---|
| .gif) | DataRule | 为数据规则提供基类。 | 
| .gif) | DataRuleAttribute | 为相关规则定义可本地化的命名空间、类别和标识符。 | 
| .gif) | DataRuleEngine | 加载并执行数据规则。 | 
| .gif) | DataRuleError | 表示因执行 DataRule 而生成的错误、异常或警告。 | 
| .gif) | DataRuleException | 表示处理 DataRule 的过程中引发的异常。 | 
| .gif) | DataRuleExecutionContext | 定义从中执行静态代码分析规则的上下文。 | 
| .gif) | DataRuleProblem | 用于存储规则检测到的问题的详细信息的类。 | 
| .gif) | DataRuleProblemSuppressionContext | 用来禁止显示通过数据库代码分析找到的问题的上下文信息。 | 
| .gif) | DataRuleProperties | 为 DataRule 对象提供一组属性。 | 
| .gif) | DataRuleSetting | 包含特定规则和特定配置的设置。 | 
| .gif) | StaticCodeAnalysisRule | 为类似规则的组或类别提供基类。 | 
| .gif) | SupportedElementTypeAttribute | 指示针对其运行 DataRule 的元素的类型。 | 
枚举
| 枚举 | 说明 | |
|---|---|---|
| .gif) | DataRuleProblemSeverity | 定义报告通过数据库代码分析找到的问题时使用的严重级别。 | 
| .gif) | DataRuleScope | 指定 DataRule 检查的范围。 |