Skip to main content

dbcontextmodelextractoroptions-class

Contains different options for Korzh.EasyQuery.EntityFramework.DbContextModelExtractor

public class Korzh.EasyQuery.EntityFramework.DbContextModelExtractorOptions

Assembly: Korzh.EasyQuery.EntityFramework6.dll

Constructors

NameTypeDescription
DbContextModelExtractorOptions()void

Properties

NameTypeDescription
FiltersIReadOnlyList<Func<IEntityMap, bool>>The Filtes
HidePrimaryKeysboolGets or sets a value indicating whether we need to hide primary key fields in the data model.
SplitTablesOnMultiReferenceboolSplit one table on two (or more) if there are multi-references between two tables
SqlFormatsSqlFormatsGets or sets the SQL formats.
TablePerHierarchyboolIf true, add one table for each entity derived from one abstract type
UseOuterJoinsboolIf true (default value) the model extractor will automatically create LEFT OUTER joins if the FK in the second table is nullable

Methods

NameTypeDescription
AddFilter(Func<IEntityMap, bool> filter)voidAdds a filter, which will be used during model loading from