ScaffoldingModelExtensions.GetFluentApiCalls 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator) |
取得流暢的 API 呼叫來設定實體類型。 |
| GetFluentApiCalls(IIndex, IAnnotationCodeGenerator) |
取得流暢的 API 呼叫來設定索引。 |
| GetFluentApiCalls(IKey, IAnnotationCodeGenerator) |
能取得流暢的 API 呼叫來設定金鑰。 |
| GetFluentApiCalls(IModel, IAnnotationCodeGenerator) |
取得流暢的 API 呼叫來配置模型。 |
| GetFluentApiCalls(IProperty, IAnnotationCodeGenerator) |
取得流暢的 API 呼叫來設定屬性。 |
| GetFluentApiCalls(ISequence, IAnnotationCodeGenerator) |
取得流暢的 API 呼叫來設定序列。 |
| GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean) |
能取得流暢的 API 呼叫來配置外鍵。 |
GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)
取得流暢的 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
提供者的註解碼產生器。
傳回
流暢的 API 呼叫。
適用於
GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)
取得流暢的 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
提供者的註解碼產生器。
傳回
流暢的 API 呼叫。
適用於
GetFluentApiCalls(IKey, IAnnotationCodeGenerator)
能取得流暢的 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
提供者的註解碼產生器。
傳回
流暢的 API 呼叫。
適用於
GetFluentApiCalls(IModel, IAnnotationCodeGenerator)
取得流暢的 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
提供者的註解碼產生器。
傳回
流暢的 API 呼叫。
適用於
GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)
取得流暢的 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
提供者的註解碼產生器。
傳回
流暢的 API 呼叫。
適用於
GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)
取得流暢的 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
提供者的註解碼產生器。
傳回
流暢的 API 呼叫。
適用於
GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)
能取得流暢的 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
一個值,指示是否使用字串流暢的 API overloads,而非使用屬性存取器 lambda 的 overloads。
傳回
流暢的 API 呼叫。