CSharpSnapshotGenerator.GenerateCheckConstraint Method
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.
Overloads
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder) |
Generates code for an ICheckConstraint. |
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder) |
Generates code for an ICheckConstraint. |
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
Generates code for an 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)
Parameters
- builderName
- String
The name of the builder variable.
- checkConstraint
- ICheckConstraint
The check constraint.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
Applies to
GenerateCheckConstraint(String, ICheckConstraint, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
Generates code for an 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)
Parameters
- builderNameentityTypeBuilderName
- String
The name of the builder variable.
- checkConstraint
- ICheckConstraint
The check constraint.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework