CSharpSnapshotGenerator.GenerateCheckConstraint 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder) |
为 ICheckConstraint生成代码。 |
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder) |
为 ICheckConstraint生成代码。 |
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
为 ICheckConstraint生成代码。
protected virtual void GenerateCheckConstraint (string builderName, Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateCheckConstraint : string * Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateCheckConstraint : string * Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateCheckConstraint (builderName As String, checkConstraint As ICheckConstraint, stringBuilder As IndentedStringBuilder)
参数
- builderName
- String
生成器变量的名称。
- checkConstraint
- ICheckConstraint
检查约束。
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
将生成器代码添加到 。
适用于
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
为 ICheckConstraint生成代码。
protected virtual void GenerateCheckConstraint (string builderName, Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateCheckConstraint (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint checkConstraint, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateCheckConstraint : string * Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateCheckConstraint : string * Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateCheckConstraint : string * Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateCheckConstraint : string * Microsoft.EntityFrameworkCore.Metadata.ICheckConstraint * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateCheckConstraint (builderName As String, checkConstraint As ICheckConstraint, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateCheckConstraint (entityTypeBuilderName As String, checkConstraint As ICheckConstraint, stringBuilder As IndentedStringBuilder)
参数
- builderNameentityTypeBuilderName
- String
生成器变量的名称。
- checkConstraint
- ICheckConstraint
检查约束。
- stringBuilder
- IndentedStringBuilder
将生成器代码添加到 。