RelationalDatabaseCreatorDependencies.Model Property
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.
Caution
Use CurrentContext.Context.GetService<IDesignTimeModel>().Model instead
Gets the model for the context this creator is being used with.
public Microsoft.EntityFrameworkCore.Metadata.IModel Model { get; }
[System.Obsolete("Use CurrentContext.Context.GetService<IDesignTimeModel>().Model instead")]
public Microsoft.EntityFrameworkCore.Metadata.IModel Model { get; init; }
member this.Model : Microsoft.EntityFrameworkCore.Metadata.IModel
[<System.Obsolete("Use CurrentContext.Context.GetService<IDesignTimeModel>().Model instead")>]
member this.Model : Microsoft.EntityFrameworkCore.Metadata.IModel with get, set
Public ReadOnly Property Model As IModel
Public Property Model As IModel
Property Value
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework