CSharpSnapshotGenerator.GenerateKey 方法

定义

重载

GenerateKey(String, IKey, IndentedStringBuilder, Boolean)

IKey生成代码。

GenerateKey(String, IKey, IndentedStringBuilder, Boolean)

IKey生成代码。

GenerateKey(IKey, IndentedStringBuilder, Boolean)

GenerateKey(String, IKey, IndentedStringBuilder, Boolean)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

IKey生成代码。

protected virtual void GenerateKey (string builderName, Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder, bool primary = false);
protected virtual void GenerateKey (string entityTypeBuilderName, Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder, bool primary = false);
abstract member GenerateKey : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder * bool -> unit
override this.GenerateKey : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder * bool -> unit
abstract member GenerateKey : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder * bool -> unit
override this.GenerateKey : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder * bool -> unit
Protected Overridable Sub GenerateKey (builderName As String, key As IKey, stringBuilder As IndentedStringBuilder, Optional primary As Boolean = false)
Protected Overridable Sub GenerateKey (entityTypeBuilderName As String, key As IKey, stringBuilder As IndentedStringBuilder, Optional primary As Boolean = false)

参数

builderNameentityTypeBuilderName
String

生成器变量的名称。

key
IKey

键。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

primary
Boolean

一个值,该值指示键是否为主键。

适用于

GenerateKey(String, IKey, IndentedStringBuilder, Boolean)

Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs
Source:
CSharpSnapshotGenerator.cs

IKey生成代码。

protected virtual void GenerateKey (string builderName, Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder, bool primary = false);
abstract member GenerateKey : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder * bool -> unit
override this.GenerateKey : string * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder * bool -> unit
Protected Overridable Sub GenerateKey (builderName As String, key As IKey, stringBuilder As IndentedStringBuilder, Optional primary As Boolean = false)

参数

builderName
String

生成器变量的名称。

key
IKey

键。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

将生成器代码添加到 。

primary
Boolean

一个值,该值指示键是否为主键。

适用于

GenerateKey(IKey, IndentedStringBuilder, Boolean)

protected virtual void GenerateKey (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder, bool primary = false);
abstract member GenerateKey : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder * bool -> unit
override this.GenerateKey : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder * bool -> unit
Protected Overridable Sub GenerateKey (key As IKey, stringBuilder As IndentedStringBuilder, Optional primary As Boolean = false)

参数

key
IKey
stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
primary
Boolean

适用于