EntityFrameworkCore3PlusExtensions class

Defines some extensions which unify meta-data functions used in EF Core 3 and higher

public static class Korzh.EasyQuery.EntityFrameworkCore.EntityFrameworkCore3PlusExtensions

Package: Korzh.EasyQuery.EntityFrameworkCore.Relational (targets: net5.0, netstandard2.1)

Assembly: Korzh.EasyQuery.EntityFrameworkCore.Relational.dll

Static Methods

Name Type Description
GetDbColumnName(this IProperty property) string Gets the column name for the specified IProperty.
GetDbDefaultSchema(this IModel model) string Gets the default schema for the specified IModel
GetDbDiscriminatorProperty(this IEntityType entityType) IProperty Returns the Microsoft.EntityFrameworkCore.Metadata.IProperty that will be used for storing a discriminator value.
GetDbDiscriminatorValue(this IEntityType entityType) object Returns the discriminator value for this entity type.
GetDbSchema(this IEntityType entityType) string Gets the schema name for the specified IEntityType
GetDbTableName(this IEntityType entityType) string Gets the table name for the specified IEntityType.