IAnnotationCodeGenerator.GenerateFluentApi 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GenerateFluentApi(IProperty, IAnnotation, String) |
已淘汰.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。 |
| GenerateFluentApi(IModel, IAnnotation, String) |
已淘汰.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。 |
| GenerateFluentApi(IKey, IAnnotation, String) |
已淘汰.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。 |
| GenerateFluentApi(IIndex, IAnnotation, String) |
已淘汰.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。 |
| GenerateFluentApi(IEntityType, IAnnotation, String) |
已淘汰.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。 |
| GenerateFluentApi(IForeignKey, IAnnotation, String) |
已淘汰.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。 |
| GenerateFluentApi(IModel, IAnnotation) |
為給定 IAnnotation的 產生流暢的 API 呼叫。 |
| GenerateFluentApi(IKey, IAnnotation) |
為給定 IAnnotation的 產生流暢的 API 呼叫。 |
| GenerateFluentApi(IIndex, IAnnotation) |
為給定 IAnnotation的 產生流暢的 API 呼叫。 |
| GenerateFluentApi(IForeignKey, IAnnotation) |
為給定 IAnnotation的 產生流暢的 API 呼叫。 |
| GenerateFluentApi(IEntityType, IAnnotation) |
為給定 IAnnotation的 產生流暢的 API 呼叫。 |
| GenerateFluentApi(IProperty, IAnnotation) |
為給定 IAnnotation的 產生流暢的 API 呼叫。 |
GenerateFluentApi(IProperty, IAnnotation, String)
警告
Use GenerateFluentApi(IProperty, IAnnotation) instead.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")]
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IProperty, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Function GenerateFluentApi (property As IProperty, annotation As IAnnotation, language As String) As String
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
- language
- String
該使用的程式語言。 例如,CSharp。
傳回
生成的程式碼。
- 屬性
適用於
GenerateFluentApi(IModel, IAnnotation, String)
警告
Use GenerateFluentApi(IModel, IAnnotation) instead.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IModel, IAnnotation) instead.")]
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IModel, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Function GenerateFluentApi (model As IModel, annotation As IAnnotation, language As String) As String
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
- language
- String
該使用的程式語言。 例如,CSharp。
傳回
生成的程式碼。
- 屬性
適用於
GenerateFluentApi(IKey, IAnnotation, String)
警告
Use GenerateFluentApi(IKey, IAnnotation) instead.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IKey, IAnnotation) instead.")]
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IKey, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Function GenerateFluentApi (key As IKey, annotation As IAnnotation, language As String) As String
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
- language
- String
該使用的程式語言。 例如,CSharp。
傳回
生成的程式碼。
- 屬性
適用於
GenerateFluentApi(IIndex, IAnnotation, String)
警告
Use GenerateFluentApi(IIndex, IAnnotation) instead.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IIndex, IAnnotation) instead.")]
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IIndex, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Function GenerateFluentApi (index As IIndex, annotation As IAnnotation, language As String) As String
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
- language
- String
該使用的程式語言。 例如,CSharp。
傳回
生成的程式碼。
- 屬性
適用於
GenerateFluentApi(IEntityType, IAnnotation, String)
警告
Use GenerateFluentApi(IEntityType, IAnnotation) instead.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IEntityType, IAnnotation) instead.")]
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IEntityType, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Function GenerateFluentApi (entityType As IEntityType, annotation As IAnnotation, language As String) As String
參數
- entityType
- IEntityType
IEntityType應該產生的程式碼。
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
- language
- String
該使用的程式語言。 例如,CSharp。
傳回
生成的程式碼。
- 屬性
適用於
GenerateFluentApi(IForeignKey, IAnnotation, String)
警告
Use GenerateFluentApi(IForeignKey, IAnnotation) instead.
能以該程式語言產生流暢的 API 呼叫 IAnnotation 。
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
[System.Obsolete("Use GenerateFluentApi(IForeignKey, IAnnotation) instead.")]
public string GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation, string language);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
[<System.Obsolete("Use GenerateFluentApi(IForeignKey, IAnnotation) instead.")>]
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation * string -> string
Public Function GenerateFluentApi (foreignKey As IForeignKey, annotation As IAnnotation, language As String) As String
參數
- foreignKey
- IForeignKey
IForeignKey應該產生的程式碼。
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
- language
- String
該使用的程式語言。 例如,CSharp。
傳回
生成的程式碼。
- 屬性
適用於
GenerateFluentApi(IModel, IAnnotation)
為給定 IAnnotation的 產生流暢的 API 呼叫。
public Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Function GenerateFluentApi (model As IModel, annotation As IAnnotation) As MethodCallCodeFragment
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
傳回
生成的程式碼。
適用於
GenerateFluentApi(IKey, IAnnotation)
為給定 IAnnotation的 產生流暢的 API 呼叫。
public Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Function GenerateFluentApi (key As IKey, annotation As IAnnotation) As MethodCallCodeFragment
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
傳回
生成的程式碼。
適用於
GenerateFluentApi(IIndex, IAnnotation)
為給定 IAnnotation的 產生流暢的 API 呼叫。
public Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Function GenerateFluentApi (index As IIndex, annotation As IAnnotation) As MethodCallCodeFragment
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
傳回
生成的程式碼。
適用於
GenerateFluentApi(IForeignKey, IAnnotation)
為給定 IAnnotation的 產生流暢的 API 呼叫。
public Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Function GenerateFluentApi (foreignKey As IForeignKey, annotation As IAnnotation) As MethodCallCodeFragment
參數
- foreignKey
- IForeignKey
IForeignKey應該產生的程式碼。
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
傳回
生成的程式碼。
適用於
GenerateFluentApi(IEntityType, IAnnotation)
為給定 IAnnotation的 產生流暢的 API 呼叫。
public Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Function GenerateFluentApi (entityType As IEntityType, annotation As IAnnotation) As MethodCallCodeFragment
參數
- entityType
- IEntityType
IEntityType應該產生的程式碼。
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
傳回
生成的程式碼。
適用於
GenerateFluentApi(IProperty, IAnnotation)
為給定 IAnnotation的 產生流暢的 API 呼叫。
public Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment GenerateFluentApi(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation annotation);
abstract member GenerateFluentApi : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation -> Microsoft.EntityFrameworkCore.Design.MethodCallCodeFragment
Public Function GenerateFluentApi (property As IProperty, annotation As IAnnotation) As MethodCallCodeFragment
參數
- annotation
- IAnnotation
IAnnotation應該產生的程式碼。
傳回
生成的程式碼。