CSharpSnapshotGenerator.GenerateCheckConstraintAnnotations 方法

定义

为检查约束注释生成代码。

protected virtual void GenerateCheckConstraintAnnotations (Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateCheckConstraintAnnotations : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateCheckConstraintAnnotations : Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateCheckConstraintAnnotations (checkConstraint As ICheckConstraint, stringBuilder As IndentedStringBuilder)

参数

checkConstraint
ICheckConstraint

检查约束。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于