CSharpSnapshotGenerator.GenerateAnnotations 方法

定义

重载

GenerateAnnotations(IEnumerable<IAnnotation>, IndentedStringBuilder)

为批注生成代码。

GenerateAnnotations(IReadOnlyList<IAnnotation>, IndentedStringBuilder)

为批注生成代码。

GenerateAnnotations(IEnumerable<IAnnotation>, IndentedStringBuilder)

Source:
CSharpSnapshotGenerator.cs

为批注生成代码。

protected virtual void GenerateAnnotations (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member GenerateAnnotations : seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.GenerateAnnotations : seq<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateAnnotations (annotations As IEnumerable(Of IAnnotation), stringBuilder As IndentedStringBuilder)

参数

annotations
IEnumerable<IAnnotation>

批注。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于

GenerateAnnotations(IReadOnlyList<IAnnotation>, IndentedStringBuilder)

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

为批注生成代码。

protected virtual void GenerateAnnotations (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> annotations, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member GenerateAnnotations : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.GenerateAnnotations : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation> * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Protected Overridable Sub GenerateAnnotations (annotations As IReadOnlyList(Of IAnnotation), stringBuilder As IndentedStringBuilder)

参数

annotations
IReadOnlyList<IAnnotation>

批注。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

将生成器代码添加到 。

适用于