DbContextModelExtractorOptions class
Contains different options for Korzh.EasyQuery.EntityFrameworkCore.DbContextModelExtractor
public class Korzh.EasyQuery.EntityFrameworkCore.DbContextModelExtractorOptions
Package: Korzh.EasyQuery.EntityFrameworkCore.Relational
(targets: net5.0
, netstandard2.0
, netstandard2.1
)
Assembly: Korzh.EasyQuery.EntityFrameworkCore.Relational.dll
Constructors
Section titled “Constructors”Name | Type | Description |
---|---|---|
DbContextModelExtractorOptions() | void |
Properties
Section titled “Properties”Name | Type | Description |
---|---|---|
Filters | IReadOnlyList <Func <IEntityType , bool >> | The Filtes |
HidePrimaryKeys | bool | Gets or sets a value indicating whether we need to hide primary key fields in the data model. |
SkipForeignKeys | bool | Gets or sets a value indicating whether we need to skip foreign key fields and don’t include them into the data model. |
SortAlphabetically | bool | If true, sorts all entities and their attributes in alphabet order |
SplitTablesOnMultiReference | bool | Split one table on two (or more) if there are multi-references between two tables |
SqlFormats | SqlFormats | Gets or sets the SQL formats used during the model extraction |
TablePerHierarchy | bool | If true, add one table for each entity derived from one abstract type |
Methods
Section titled “Methods”Name | Type | Description |
---|---|---|
AddFilter(Func <IEntityType , bool > filter) | void | Adds a filter, which will be used during model loading from Microsoft.EntityFrameworkCore.DbContext |