DbContextModelAttribute Class
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.
Identifies the RuntimeModel implementation that should be used for a given context.
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class DbContextModelAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type DbContextModelAttribute = class
inherit Attribute
Public NotInheritable Class DbContextModelAttribute
Inherits Attribute
- Inheritance
-
DbContextModelAttribute
- Attributes
This attribute will usually be generated with the compiled model and doesn't need to be specified in your code.
See Using DbContext pooling for more information and examples.
Db |
Initializes a new instance of the DbContextAttribute class. |
Context |
Gets the associated context. |
Model |
Gets the compiled model. |
Produkt | Versioner |
---|---|
Entity Framework Core | 9.0 |
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: