CSharpSnapshotGenerator.GenerateFluentApiForAnnotation Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
GenerateFluentApiForAnnotation(List<IAnnotation>, String, String, IndentedStringBuilder) |
Создает вызовы Api Fluent для заметки. |
GenerateFluentApiForAnnotation(List<IAnnotation>, String, Func<IAnnotation,Object>, String, IndentedStringBuilder) |
Создает вызовы Api Fluent для заметки. |
GenerateFluentApiForAnnotation(List<IAnnotation>, String, String, IndentedStringBuilder)
- Исходный код:
- CSharpSnapshotGenerator.cs
- Исходный код:
- CSharpSnapshotGenerator.cs
- Исходный код:
- CSharpSnapshotGenerator.cs
- Исходный код:
- CSharpSnapshotGenerator.cs
Создает вызовы Api Fluent для заметки.
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
Имя метода Api Fluent.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
Код построителя добавляется в .
Применяется к
GenerateFluentApiForAnnotation(List<IAnnotation>, String, Func<IAnnotation,Object>, String, IndentedStringBuilder)
- Исходный код:
- CSharpSnapshotGenerator.cs
- Исходный код:
- CSharpSnapshotGenerator.cs
- Исходный код:
- CSharpSnapshotGenerator.cs
- Исходный код:
- CSharpSnapshotGenerator.cs
Создает вызовы Api Fluent для заметки.
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
Имя метода Api Fluent.
- stringBuilder
- Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder
Код построителя добавляется в .
Применяется к
Entity Framework