共用方式為


DbContextModelAttribute(Type, Type) Constructor

Definition

Initializes a new instance of the DbContextAttribute class.

public DbContextModelAttribute (Type contextType, Type modelType);
new Microsoft.EntityFrameworkCore.Infrastructure.DbContextModelAttribute : Type * Type -> Microsoft.EntityFrameworkCore.Infrastructure.DbContextModelAttribute
Public Sub New (contextType As Type, modelType As Type)

Parameters

contextType
Type

The associated context.

modelType
Type

The compiled model.

Applies to