IModelSource.GetModel Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GetModel(DbContext, IConventionSetBuilder) |
Obsoleti.
Obsoleti.
Ottiene il modello da utilizzare. |
GetModel(DbContext, IConventionSetBuilder, ModelDependencies) |
Obsoleti.
Ottiene il modello da utilizzare. |
GetModel(DbContext, IConventionSetBuilder, IModelValidator) |
Ottiene il modello da utilizzare. |
GetModel(DbContext, IConventionSetBuilder, IModelValidator) |
Ottiene il modello da utilizzare. |
GetModel(DbContext, ModelCreationDependencies, Boolean) |
Ottiene il modello da utilizzare. |
GetModel(DbContext, IConventionSetBuilder)
Attenzione
Use the overload with ModelDependencies
Attenzione
Use the overload with ModelCreationDependencies
Ottiene il modello da utilizzare.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
[System.Obsolete("Use the overload with ModelDependencies")]
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
[System.Obsolete("Use the overload with ModelCreationDependencies")]
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use the overload with ModelDependencies")>]
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use the overload with ModelCreationDependencies")>]
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder) As IModel
Parametri
- context
- DbContext
Contesto per cui viene prodotto il modello.
- conventionSetBuilder
- IConventionSetBuilder
Convenzione impostata da utilizzare durante la creazione del modello.
Restituisce
Modello da utilizzare.
- Attributi
Si applica a
GetModel(DbContext, IConventionSetBuilder, ModelDependencies)
Attenzione
Use the overload with ModelCreationDependencies
Ottiene il modello da utilizzare.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
[System.Obsolete("Use the overload with ModelCreationDependencies")]
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies modelDependencies);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use the overload with ModelCreationDependencies")>]
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Infrastructure.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.ModelDependencies -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, modelDependencies As ModelDependencies) As IModel
Parametri
- context
- DbContext
Contesto per cui viene prodotto il modello.
- conventionSetBuilder
- IConventionSetBuilder
Convenzione impostata da utilizzare durante la creazione del modello.
- modelDependencies
- ModelDependencies
Oggetto dependencies per il modello.
Restituisce
Modello da utilizzare.
- Attributi
Si applica a
GetModel(DbContext, IConventionSetBuilder, IModelValidator)
Ottiene il modello da utilizzare.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator validator);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Infrastructure.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, validator As IModelValidator) As IModel
Parametri
- context
- DbContext
Contesto per cui viene prodotto il modello.
- conventionSetBuilder
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder
Convenzione impostata da utilizzare durante la creazione del modello.
- validator
- IModelValidator
Validator per verificare che il modello possa essere usato correttamente con il contesto.
Restituisce
Modello da utilizzare.
Si applica a
GetModel(DbContext, IConventionSetBuilder, IModelValidator)
Ottiene il modello da utilizzare.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder conventionSetBuilder, Microsoft.EntityFrameworkCore.Internal.IModelValidator validator);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder * Microsoft.EntityFrameworkCore.Internal.IModelValidator -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, conventionSetBuilder As IConventionSetBuilder, validator As IModelValidator) As IModel
Parametri
- context
- DbContext
Contesto per cui viene prodotto il modello.
- conventionSetBuilder
- Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.IConventionSetBuilder
Convenzione impostata da utilizzare durante la creazione del modello.
- validator
- Microsoft.EntityFrameworkCore.Internal.IModelValidator
Validator per verificare che il modello possa essere usato correttamente con il contesto.
Restituisce
Modello da utilizzare.
Si applica a
GetModel(DbContext, ModelCreationDependencies, Boolean)
- Origine:
- IModelSource.cs
- Origine:
- IModelSource.cs
- Origine:
- IModelSource.cs
Ottiene il modello da utilizzare.
public Microsoft.EntityFrameworkCore.Metadata.IModel GetModel (Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.ModelCreationDependencies modelCreationDependencies, bool designTime);
abstract member GetModel : Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.ModelCreationDependencies * bool -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function GetModel (context As DbContext, modelCreationDependencies As ModelCreationDependencies, designTime As Boolean) As IModel
Parametri
- context
- DbContext
Contesto per cui viene prodotto il modello.
- modelCreationDependencies
- ModelCreationDependencies
Oggetto dependencies utilizzato durante la creazione del modello.
- designTime
- Boolean
Indica se il modello deve contenere una configurazione in fase di progettazione.
Restituisce
Modello da utilizzare.