CSharpSnapshotGenerator.GenerateKeys 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
GenerateKeys(IEnumerable<IKey>, IKey, IndentedStringBuilder) | |
GenerateKeys(String, IEnumerable<IKey>, IKey, IndentedStringBuilder) |
Generates code for IKey objects. |
GenerateKeys(String, IEnumerable<IKey>, IKey, IndentedStringBuilder) |
Generates code for IKey objects. |
GenerateKeys(IEnumerable<IKey>, IKey, IndentedStringBuilder)
protected virtual void GenerateKeys (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> keys, Microsoft.EntityFrameworkCore.Metadata.IKey primaryKey, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateKeys : seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateKeys : seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeys (keys As IEnumerable(Of IKey), primaryKey As IKey, stringBuilder As IndentedStringBuilder)
Parameters
- keys
- IEnumerable<IKey>
- primaryKey
- IKey
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
Applies to
GenerateKeys(String, IEnumerable<IKey>, IKey, IndentedStringBuilder)
Generates code for IKey objects.
protected virtual void GenerateKeys (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> keys, Microsoft.EntityFrameworkCore.Metadata.IKey primaryKey, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeys (builderName As String, keys As IEnumerable(Of IKey), primaryKey As IKey, stringBuilder As IndentedStringBuilder)
Parameters
- builderName
- String
The name of the builder variable.
- keys
- IEnumerable<IKey>
The keys.
- primaryKey
- IKey
The primary key.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
The builder code is added to.
Applies to
GenerateKeys(String, IEnumerable<IKey>, IKey, IndentedStringBuilder)
Generates code for IKey objects.
protected virtual void GenerateKeys (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> keys, Microsoft.EntityFrameworkCore.Metadata.IKey primaryKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateKeys (string entityTypeBuilderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IKey> keys, Microsoft.EntityFrameworkCore.Metadata.IKey? primaryKey, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateKeys : string * seq<Microsoft.EntityFrameworkCore.Metadata.IKey> * Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateKeys (builderName As String, keys As IEnumerable(Of IKey), primaryKey As IKey, stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateKeys (entityTypeBuilderName As String, keys As IEnumerable(Of IKey), primaryKey As IKey, stringBuilder As IndentedStringBuilder)
Parameters
- builderNameentityTypeBuilderName
- String
The name of the builder variable.
- keys
- IEnumerable<IKey>
The keys.
- primaryKey
- IKey
The primary key.
- 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