ScaffoldingModelExtensions.GetFluentApiCalls Method

Definition

Overloads

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

Gets the fluent API calls to configure an entity type.

GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)

Gets the fluent API calls to configure an index.

GetFluentApiCalls(IKey, IAnnotationCodeGenerator)

Gets the fluent API calls to configure a key.

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

Gets the fluent API calls to configure a model.

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

Gets the fluent API calls to configure a property.

GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)

Gets the fluent API calls to configure a sequence.

GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)

Gets the fluent API calls to configure a foreign key.

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure an entity type.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);

Parameters

entityType
IEntityType

The entity type.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure an index.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);

Parameters

index
IIndex

The index.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IKey, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure a key.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);

Parameters

key
IKey

The key.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure a model.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);

Parameters

model
IModel

The model.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure a property.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);

Parameters

property
IProperty

The property.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure a sequence.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);

Parameters

sequence
ISequence

The sequence.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)

Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs
Source:
ScaffoldingModelExtensions.cs

Gets the fluent API calls to configure a foreign key.

C#
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator, bool useStrings = false);

Parameters

foreignKey
IForeignKey

The foreign key.

annotationCodeGenerator
IAnnotationCodeGenerator

The provider's annotation code generator.

useStrings
Boolean

A value indicating wheter to use string fluent API overloads instead of ones that take a property accessor lambda.

Returns

The fluent API calls.

Applies to

Entity Framework Core 9.0 ja muud versioonid
Toode Versioonid
Entity Framework Core 7.0, 8.0, 9.0