Share via


IAnnotationCodeGenerator.GenerateFluentApi Method

Definition

Overloads

GenerateFluentApi(IProperty, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IModel, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IKey, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IIndex, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IEntityType, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IForeignKey, IAnnotation, String)
Obsolete.

Generates fluent API calls for the given IAnnotation in the given programming language.

GenerateFluentApi(IModel, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IKey, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IIndex, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IForeignKey, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IEntityType, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IProperty, IAnnotation)

Generates fluent API calls for the given IAnnotation.

GenerateFluentApi(IProperty, IAnnotation, String)

Caution

Use GenerateFluentApi(IProperty, IAnnotation) instead.

Generates fluent API calls for the given IAnnotation in the given programming language.

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

Parameters

property
IProperty

The IProperty for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

language
String

The programming language to use. For example, CSharp.

Returns

The generated code.

Attributes

Applies to

GenerateFluentApi(IModel, IAnnotation, String)

Caution

Use GenerateFluentApi(IModel, IAnnotation) instead.

Generates fluent API calls for the given IAnnotation in the given programming language.

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

Parameters

model
IModel

The IModel for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

language
String

The programming language to use. For example, CSharp.

Returns

The generated code.

Attributes

Applies to

GenerateFluentApi(IKey, IAnnotation, String)

Caution

Use GenerateFluentApi(IKey, IAnnotation) instead.

Generates fluent API calls for the given IAnnotation in the given programming language.

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

Parameters

key
IKey

The IKey for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

language
String

The programming language to use. For example, CSharp.

Returns

The generated code.

Attributes

Applies to

GenerateFluentApi(IIndex, IAnnotation, String)

Caution

Use GenerateFluentApi(IIndex, IAnnotation) instead.

Generates fluent API calls for the given IAnnotation in the given programming language.

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

Parameters

index
IIndex

The IIndex for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

language
String

The programming language to use. For example, CSharp.

Returns

The generated code.

Attributes

Applies to

GenerateFluentApi(IEntityType, IAnnotation, String)

Caution

Use GenerateFluentApi(IEntityType, IAnnotation) instead.

Generates fluent API calls for the given IAnnotation in the given programming language.

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

Parameters

entityType
IEntityType

The IEntityType for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

language
String

The programming language to use. For example, CSharp.

Returns

The generated code.

Attributes

Applies to

GenerateFluentApi(IForeignKey, IAnnotation, String)

Caution

Use GenerateFluentApi(IForeignKey, IAnnotation) instead.

Generates fluent API calls for the given IAnnotation in the given programming language.

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

Parameters

foreignKey
IForeignKey

The IForeignKey for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

language
String

The programming language to use. For example, CSharp.

Returns

The generated code.

Attributes

Applies to

GenerateFluentApi(IModel, IAnnotation)

Generates fluent API calls for the given IAnnotation.

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

Parameters

model
IModel

The IModel for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

Returns

The generated code.

Applies to

GenerateFluentApi(IKey, IAnnotation)

Generates fluent API calls for the given IAnnotation.

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

Parameters

key
IKey

The IKey for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

Returns

The generated code.

Applies to

GenerateFluentApi(IIndex, IAnnotation)

Generates fluent API calls for the given IAnnotation.

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

Parameters

index
IIndex

The IIndex for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

Returns

The generated code.

Applies to

GenerateFluentApi(IForeignKey, IAnnotation)

Generates fluent API calls for the given IAnnotation.

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

Parameters

foreignKey
IForeignKey

The IForeignKey for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

Returns

The generated code.

Applies to

GenerateFluentApi(IEntityType, IAnnotation)

Generates fluent API calls for the given IAnnotation.

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

Parameters

entityType
IEntityType

The IEntityType for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

Returns

The generated code.

Applies to

GenerateFluentApi(IProperty, IAnnotation)

Generates fluent API calls for the given IAnnotation.

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

Parameters

property
IProperty

The IProperty for which code should be generated.

annotation
IAnnotation

The IAnnotation for which code should be generated.

Returns

The generated code.

Applies to