ScaffoldingModelExtensions.GetFluentApiCalls Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Gets the fluent API calls to configure an entity type.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (entityType As IEntityType, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment
Parameters
- entityType
- IEntityType
The entity type.
- annotationCodeGenerator
- IAnnotationCodeGenerator
The provider's annotation code generator.
Returns
The fluent API calls.
Applies to
GetFluentApiCalls(IIndex, IAnnotationCodeGenerator)
Gets the fluent API calls to configure an index.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (index As IIndex, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment
Parameters
- index
- IIndex
The index.
- annotationCodeGenerator
- IAnnotationCodeGenerator
The provider's annotation code generator.
Returns
The fluent API calls.
Applies to
GetFluentApiCalls(IKey, IAnnotationCodeGenerator)
Gets the fluent API calls to configure a key.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (key As IKey, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment
Parameters
- key
- IKey
The key.
- annotationCodeGenerator
- IAnnotationCodeGenerator
The provider's annotation code generator.
Returns
The fluent API calls.
Applies to
GetFluentApiCalls(IModel, IAnnotationCodeGenerator)
Gets the fluent API calls to configure a model.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (model As IModel, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment
Parameters
- model
- IModel
The model.
- annotationCodeGenerator
- IAnnotationCodeGenerator
The provider's annotation code generator.
Returns
The fluent API calls.
Applies to
GetFluentApiCalls(IProperty, IAnnotationCodeGenerator)
Gets the fluent API calls to configure a property.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (property As IProperty, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment
Parameters
- property
- IProperty
The property.
- annotationCodeGenerator
- IAnnotationCodeGenerator
The provider's annotation code generator.
Returns
The fluent API calls.
Applies to
GetFluentApiCalls(ISequence, IAnnotationCodeGenerator)
Gets the fluent API calls to configure a sequence.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.ISequence sequence, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.ISequence * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (sequence As ISequence, annotationCodeGenerator As IAnnotationCodeGenerator) As FluentApiCodeFragment
Parameters
- sequence
- ISequence
The sequence.
- annotationCodeGenerator
- IAnnotationCodeGenerator
The provider's annotation code generator.
Returns
The fluent API calls.
Applies to
GetFluentApiCalls(IForeignKey, IAnnotationCodeGenerator, Boolean)
Gets the fluent API calls to configure a foreign key.
public static Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? GetFluentApiCalls (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator annotationCodeGenerator, bool useStrings = false);
static member GetFluentApiCalls : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Design.IAnnotationCodeGenerator * bool -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
<Extension()>
Public Function GetFluentApiCalls (foreignKey As IForeignKey, annotationCodeGenerator As IAnnotationCodeGenerator, Optional useStrings As Boolean = false) As FluentApiCodeFragment
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