CSharpSnapshotGenerator.GenerateKey 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
GenerateKey(String, IKey, IndentedStringBuilder, Boolean) |
Generates code for an IKey. |
GenerateKey(String, IKey, IndentedStringBuilder, Boolean) |
Generates code for an 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
Generates code for an 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)
Parameters
- builderNameentityTypeBuilderName
- String
The name of the builder variable.
- key
- IKey
The key.
- stringBuilder
- IndentedStringBuilder
The builder code is added to.
- primary
- Boolean
A value indicating whether the key is primary.
Applies to
GenerateKey(String, IKey, IndentedStringBuilder, Boolean)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
Generates code for an 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)
Parameters
- builderName
- String
The name of the builder variable.
- key
- IKey
The key.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
- primary
- Boolean
A value indicating whether the key is primary.
Applies to
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)
Parameters
- key
- IKey
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
- primary
- Boolean
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework