共用方式為


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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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)

來源:
ScaffoldingModelExtensions.cs
來源:
ScaffoldingModelExtensions.cs
來源:
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

值,指出使用字串 Fluent API 多載,而不是採用屬性存取子 Lambda 的值。

傳回

Fluent API 呼叫。

適用於