다음을 통해 공유


CSharpSnapshotGenerator.GenerateData 메서드

정의

오버로드

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

데이터 시드에 대한 코드를 생성합니다.

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

데이터 시드에 대한 코드를 생성합니다.

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

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

데이터 시드에 대한 코드를 생성합니다.

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)

매개 변수

builderNameentityTypeBuilderName
String

작성기 변수의 이름입니다.

properties
IEnumerable<IProperty>

생성할 속성입니다.

data
IEnumerable<IDictionary<String,Object>>

시드할 데이터입니다.

stringBuilder
IndentedStringBuilder

작성기 코드가 에 추가됩니다.

적용 대상

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

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

데이터 시드에 대한 코드를 생성합니다.

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)

매개 변수

builderName
String

작성기 변수의 이름입니다.

properties
IEnumerable<IProperty>

생성할 속성입니다.

data
IEnumerable<IDictionary<String,Object>>

시드할 데이터입니다.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

작성기 코드가 에 추가됩니다.

적용 대상