CSharpSnapshotGenerator.GenerateFluentApiForAnnotation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GenerateFluentApiForAnnotation(List<IAnnotation>, String, String, IndentedStringBuilder)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- 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)
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- CSharpSnapshotGenerator.cs
- Source:
- 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
将生成器代码添加到 。