Condividi tramite


CSharpSnapshotGenerator.GenerateData Metodo

Definizione

Overload

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

Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs

Genera il codice per il seeding dei dati.

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)

Parametri

builderNameentityTypeBuilderName
String

Nome della variabile del generatore.

properties
IEnumerable<IProperty>

Proprietà da generare.

data
IEnumerable<IDictionary<String,Object>>

Dati di cui eseguire il seeding.

stringBuilder
IndentedStringBuilder

Il codice del generatore viene aggiunto a .

Si applica a

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

Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs
Origine:
CSharpSnapshotGenerator.cs

Genera il codice per il seeding dei dati.

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)

Parametri

builderName
String

Nome della variabile del generatore.

properties
IEnumerable<IProperty>

Proprietà da generare.

data
IEnumerable<IDictionary<String,Object>>

Dati di cui eseguire il seeding.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Il codice del generatore viene aggiunto a .

Si applica a