ScaffoldingModelExtensions.GetFluentApiCalls 方法

定义

重载

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

获取用于配置实体类型的 fluent API 调用。

GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)

获取用于配置索引的 fluent API 调用。

GetFluentApiCalls(IKey, IAnnotationCodeGenerator)

获取用于配置密钥的 fluent API 调用。

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

获取用于配置模型的 fluent API 调用。

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

获取用于配置属性的 fluent API 调用。

GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)

获取用于配置序列的 fluent API 调用。

GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)

获取用于配置外键的 fluent API 调用。

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置实体类型的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (entityType As IEntityType, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment

参数

entityType
IEntityType

实体类型。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

返回

fluent API 调用。

适用于

GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置索引的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (index As IIndex, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment

参数

index
IIndex

索引。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

返回

fluent API 调用。

适用于

GetFluentApiCalls(IKey, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置密钥的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (key As IKey, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment

参数

key
IKey

键。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

返回

fluent API 调用。

适用于

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置模型的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (model As IModel, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment

参数

model
IModel

模型。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

返回

fluent API 调用。

适用于

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置属性的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (property As IProperty, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment

参数

property
IProperty

属性。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

返回

fluent API 调用。

适用于

GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置序列的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ISequence * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (sequence As ISequence, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment

参数

sequence
ISequence

序列。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

返回

fluent API 调用。

适用于

GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

获取用于配置外键的 fluent API 调用。

public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator, bool useStrings = false);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator * bool -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (foreignKey As IForeignKey, annotationCodeGenerator As IAnnotationCodeGenerator, Optional useStrings As Boolean = false) As FluentApiCodeFragment

参数

foreignKey
IForeignKey

外键。

annotationCodeGenerator
IAnnotationCodeGenerator

提供程序的注释代码生成器。

useStrings
Boolean

一个值,该值指示 wheter 使用字符串 fluent API 重载,而不是使用属性访问器 lambda 的重载。

返回

fluent API 调用。

适用于