Udostępnij za pośrednictwem


ModelConfigurationBuilder Constructors

Definition

Overloads

ModelConfigurationBuilder(ConventionSet)

Initializes a new instance of the ModelConfigurationBuilder.

ModelConfigurationBuilder(ConventionSet, IServiceProvider)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

ModelConfigurationBuilder(ConventionSet)

Source:
ModelConfigurationBuilder.cs

Initializes a new instance of the ModelConfigurationBuilder.

public ModelConfigurationBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions);
new Microsoft.EntityFrameworkCore.ModelConfigurationBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Sub New (conventions As ConventionSet)

Parameters

conventions
ConventionSet

The conventions to be applied during model building.

Remarks

See Pre-convention model building in EF Core for more information.

Applies to

ModelConfigurationBuilder(ConventionSet, IServiceProvider)

Source:
ModelConfigurationBuilder.cs
Source:
ModelConfigurationBuilder.cs
Source:
ModelConfigurationBuilder.cs

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public ModelConfigurationBuilder (Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet conventions, IServiceProvider serviceProvider);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.ModelConfigurationBuilder : Microsoft.EntityFrameworkCore.Metadata.Conventions.ConventionSet * IServiceProvider -> Microsoft.EntityFrameworkCore.ModelConfigurationBuilder
Public Sub New (conventions As ConventionSet, serviceProvider As IServiceProvider)

Parameters

conventions
ConventionSet
serviceProvider
IServiceProvider
Attributes

Applies to