Freigeben über


CSharpSnapshotGenerator.GenerateData Methode

Definition

Überlädt

GenerateData(String, IEnumerable<IProperty>, IEnumerable<IDictionary<String,Object>>, IndentedStringBuilder)

Generiert Code für das Seeding von Daten.

GenerateData(String, IEnumerable<IProperty>, IEnumerable<IDictionary<String,Object>>, IndentedStringBuilder)

Generiert Code für das Seeding von Daten.

GenerateData(String, IEnumerable<IProperty>, IEnumerable<IDictionary<String,Object>>, IndentedStringBuilder)

Generiert Code für das Seeding von Daten.

protected virtual void GenerateData (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string,object>> data, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
protected virtual void GenerateData (string entityTypeBuilderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string,object?>> data, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateData : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * seq<System.Collections.Generic.IDictionary<string, obj>> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateData : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * seq<System.Collections.Generic.IDictionary<string, obj>> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member GenerateData : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * seq<System.Collections.Generic.IDictionary<string, obj>> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateData : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * seq<System.Collections.Generic.IDictionary<string, obj>> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateData (builderName As String, properties As IEnumerable(Of IProperty), data As IEnumerable(Of IDictionary(Of String, Object)), stringBuilder As IndentedStringBuilder)
Protected Overridable Sub GenerateData (entityTypeBuilderName As String, properties As IEnumerable(Of IProperty), data As IEnumerable(Of IDictionary(Of String, Object)), stringBuilder As IndentedStringBuilder)

Parameter

builderNameentityTypeBuilderName
String

Der Name der Generatorvariablen.

properties
IEnumerable<IProperty>

Die zu generierenden Eigenschaften.

data
IEnumerable<IDictionary<String,Object>>

Die Daten, die als Seeding festgelegt werden sollen.

stringBuilder
IndentedStringBuilder

Der Generatorcode wird hinzugefügt.

Gilt für:

GenerateData(String, IEnumerable<IProperty>, IEnumerable<IDictionary<String,Object>>, IndentedStringBuilder)

Generiert Code für das Seeding von Daten.

protected virtual void GenerateData (string builderName, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string,object>> data, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateData : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * seq<System.Collections.Generic.IDictionary<string, obj>> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateData : string * seq<Microsoft.EntityFrameworkCore.Metadata.IProperty> * seq<System.Collections.Generic.IDictionary<string, obj>> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateData (builderName As String, properties As IEnumerable(Of IProperty), data As IEnumerable(Of IDictionary(Of String, Object)), stringBuilder As IndentedStringBuilder)

Parameter

builderName
String

Der Name der Generatorvariablen.

properties
IEnumerable<IProperty>

Die zu generierenden Eigenschaften.

data
IEnumerable<IDictionary<String,Object>>

Die Daten, die als Seeding festgelegt werden sollen.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Der Generatorcode wird hinzugefügt.

Gilt für: