共用方式為


IAnnotationCodeGenerator.GenerateFluentApi 方法

定義

多載

GenerateFluentApi(IProperty, IAnnotation, String)
已淘汰.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

GenerateFluentApi(IModel, IAnnotation, String)
已淘汰.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

GenerateFluentApi(IKey, IAnnotation, String)
已淘汰.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

GenerateFluentApi(IIndex, IAnnotation, String)
已淘汰.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

GenerateFluentApi(IEntityType, IAnnotation, String)
已淘汰.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

GenerateFluentApi(IForeignKey, IAnnotation, String)
已淘汰.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

GenerateFluentApi(IModel, IAnnotation)

為指定的 IAnnotation 產生 Fluent API 呼叫。

GenerateFluentApi(IKey, IAnnotation)

為指定的 IAnnotation 產生 Fluent API 呼叫。

GenerateFluentApi(IIndex, IAnnotation)

為指定的 IAnnotation 產生 Fluent API 呼叫。

GenerateFluentApi(IForeignKey, IAnnotation)

為指定的 IAnnotation 產生 Fluent API 呼叫。

GenerateFluentApi(IEntityType, IAnnotation)

為指定的 IAnnotation 產生 Fluent API 呼叫。

GenerateFluentApi(IProperty, IAnnotation)

為指定的 IAnnotation 產生 Fluent API 呼叫。

GenerateFluentApi(IProperty, IAnnotation, String)

警告

Use GenerateFluentApi(IProperty, IAnnotation) instead.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

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

參數

property
IProperty

IProperty應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

language
String

要使用的程式設計語言。 例如,CSharp。

傳回

產生的程式碼。

屬性

適用於

GenerateFluentApi(IModel, IAnnotation, String)

警告

Use GenerateFluentApi(IModel, IAnnotation) instead.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

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

參數

model
IModel

IModel應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

language
String

要使用的程式設計語言。 例如,CSharp。

傳回

產生的程式碼。

屬性

適用於

GenerateFluentApi(IKey, IAnnotation, String)

警告

Use GenerateFluentApi(IKey, IAnnotation) instead.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

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

參數

key
IKey

IKey應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

language
String

要使用的程式設計語言。 例如,CSharp。

傳回

產生的程式碼。

屬性

適用於

GenerateFluentApi(IIndex, IAnnotation, String)

警告

Use GenerateFluentApi(IIndex, IAnnotation) instead.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

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

參數

index
IIndex

IIndex應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

language
String

要使用的程式設計語言。 例如,CSharp。

傳回

產生的程式碼。

屬性

適用於

GenerateFluentApi(IEntityType, IAnnotation, String)

警告

Use GenerateFluentApi(IEntityType, IAnnotation) instead.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

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.

使用指定的程式設計語言,為指定的 IAnnotation 產生的 Fluent API 呼叫。

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 產生 Fluent 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

參數

model
IModel

IModel應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

傳回

產生的程式碼。

適用於

GenerateFluentApi(IKey, IAnnotation)

為指定的 IAnnotation 產生 Fluent 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

參數

key
IKey

IKey應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

傳回

產生的程式碼。

適用於

GenerateFluentApi(IIndex, IAnnotation)

為指定的 IAnnotation 產生 Fluent 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

參數

index
IIndex

IIndex應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

傳回

產生的程式碼。

適用於

GenerateFluentApi(IForeignKey, IAnnotation)

為指定的 IAnnotation 產生 Fluent 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 產生 Fluent 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 產生 Fluent 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

參數

property
IProperty

IProperty應該為其產生程式碼的 。

annotation
IAnnotation

IAnnotation應該為其產生程式碼的 。

傳回

產生的程式碼。

適用於