Afficher en anglais

Partage via


ScaffoldingModelExtensions.GetFluentApiCalls Méthode

Définition

Surcharges

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

Obtient les appels d’API Fluent pour configurer un type d’entité.

GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)

Obtient les appels d’API Fluent pour configurer un index.

GetFluentApiCalls(IKey, IAnnotationCodeGenerator)

Obtient les appels d’API Fluent pour configurer une clé.

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

Obtient les appels d’API Fluent pour configurer un modèle.

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

Obtient les appels d’API Fluent pour configurer une propriété.

GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)

Obtient les appels d’API Fluent pour configurer une séquence.

GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)

Obtient les appels d’API Fluent pour configurer une clé étrangère.

GetFluentApiCalls(IEntityType, IAnnotationCodeGenerator)

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

Obtient les appels d’API Fluent pour configurer un type d’entité.

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

Paramètres

entityType
IEntityType

Type d'entité.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)

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

Obtient les appels d’API Fluent pour configurer un index.

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

Paramètres

index
IIndex

Index.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IKey, IAnnotationCodeGenerator)

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

Obtient les appels d’API Fluent pour configurer une clé.

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

Paramètres

key
IKey

Clé.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IModel, IAnnotationCodeGenerator)

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

Obtient les appels d’API Fluent pour configurer un modèle.

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

Paramètres

model
IModel

Modèle.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)

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

Obtient les appels d’API Fluent pour configurer une propriété.

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

Paramètres

property
IProperty

Propriété.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)

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

Obtient les appels d’API Fluent pour configurer une séquence.

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

Paramètres

sequence
ISequence

Séquence.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0

GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)

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

Obtient les appels d’API Fluent pour configurer une clé étrangère.

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

Paramètres

foreignKey
IForeignKey

Clé étrangère.

annotationCodeGenerator
IAnnotationCodeGenerator

Générateur de code d’annotation du fournisseur.

useStrings
Boolean

Valeur indiquant que wheter doit utiliser des surcharges d’API string fluent au lieu de celles qui prennent un accesseur de propriété lambda.

Retours

Appels de l’API Fluent.

S’applique à

Entity Framework Core 9.0 et autres versions
Produit Versions
Entity Framework Core 7.0, 8.0, 9.0