RelationalEntityTypeAnnotations.GetAnnotations Method
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.
Overloads
GetAnnotations(IEntityType) |
Gets a RelationalEntityTypeAnnotations instance for the given IEntityType maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention. |
GetAnnotations(IModel) |
Gets a RelationalModelAnnotations instance for the given IModel maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention. |
GetAnnotations(IEntityType)
Gets a RelationalEntityTypeAnnotations instance for the given IEntityType maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.
protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations GetAnnotations (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
override this.GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
Protected Overridable Function GetAnnotations (entityType As IEntityType) As RelationalEntityTypeAnnotations
Parameters
- entityType
- IEntityType
The IEntityType to annotate.
Returns
A new RelationalEntityTypeAnnotations instance.
Applies to
GetAnnotations(IModel)
Gets a RelationalModelAnnotations instance for the given IModel maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.
protected virtual Microsoft.EntityFrameworkCore.Metadata.RelationalModelAnnotations GetAnnotations (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.RelationalModelAnnotations
override this.GetAnnotations : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.RelationalModelAnnotations
Protected Overridable Function GetAnnotations (model As IModel) As RelationalModelAnnotations
Parameters
Returns
A new RelationalModelAnnotations instance.
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for