共用方式為


CSharpSnapshotGenerator.GenerateFluentApiForAnnotation 方法

定義

多載

GenerateFluentApiForAnnotation(List<IAnnotation>, String, String, IndentedStringBuilder)

產生批註的 Fluent API 呼叫。

GenerateFluentApiForAnnotation(List<IAnnotation>, String, Func<IAnnotation,Object>, String, IndentedStringBuilder)

產生批註的 Fluent API 呼叫。

GenerateFluentApiForAnnotation(List<IAnnotation>, String, String, IndentedStringBuilder)

來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs

產生批註的 Fluent API 呼叫。

protected virtual void GenerateFluentApiForAnnotation (ref System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations, string annotationName, string fluentApiMethodName, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateFluentApiForAnnotation : List * string * string * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateFluentApiForAnnotation : List * string * string * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateFluentApiForAnnotation (ByRef annotations As List(Of IAnnotation), annotationName As String, fluentApiMethodName As String, stringBuilder As IndentedStringBuilder)

參數

annotations
List<IAnnotation>

批註清單。

annotationName
String

要為其產生程式碼的批註名稱。

fluentApiMethodName
String

Fluent API 方法名稱。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

建立器程式碼會新增至 。

適用於

GenerateFluentApiForAnnotation(List<IAnnotation>, String, Func<IAnnotation,Object>, String, IndentedStringBuilder)

來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs
來源:
CSharpSnapshotGenerator.cs

產生批註的 Fluent API 呼叫。

protected virtual void GenerateFluentApiForAnnotation (ref System.Collections.Generic.List<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations, string annotationName, Func<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation,object> annotationValueFunc, string fluentApiMethodName, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateFluentApiForAnnotation : List * string * Func<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation, obj> * string * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateFluentApiForAnnotation : List * string * Func<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation, obj> * string * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateFluentApiForAnnotation (ByRef annotations As List(Of IAnnotation), annotationName As String, annotationValueFunc As Func(Of IAnnotation, Object), fluentApiMethodName As String, stringBuilder As IndentedStringBuilder)

參數

annotations
List<IAnnotation>

批註清單。

annotationName
String

要為其產生程式碼的批註名稱。

annotationValueFunc
Func<IAnnotation,Object>

從批註產生值的委派。

fluentApiMethodName
String

Fluent API 方法名稱。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

建立器程式碼會新增至 。

適用於