Skip to main content

dbconnectionmodelloaderoptions-class

Represents different options for Korzh.EasyQuery.Services.DbConnectionModelLoader class

public class Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
DbConnectionModelLoaderOptions()void

Properties

NameTypeDescription
FieldFiltersIReadOnlyList<Func<DbFieldInfo, bool>>Gets the field filters. Each filter is a function which returns true for the field that should be processed.
HideKeyFieldsboolGets a value indicating whether we need to hide key fields.
PrettifyNamesboolGets a value indicating whether we need to prettify table and column names
ReplaceToSingularNamesboolGets a value indicating whether replace the name of the table in plural form (like Customers) to it singular variant (Customer) when we create an entity by some table.
SchemasIReadOnlyList<string>Gets the list of schemas.
SplitTablesOnMultiReferenceboolSplit one table on two (or more) if there are multi-references between two tables
TableFiltersIReadOnlyList<Func<DbTableInfo, bool>>Gets the table filters. Each filter is a function which returns true for the tables that should be processed.
UseNameColumnsInLookupsboolGets or sets a value indicating whether the model loader will try to find a "name" ("text") column in the referenced table when the SQL statement for lookup value editor is generated.

Methods

NameTypeDescription
AddFieldFilter(Func<DbFieldInfo, bool> filter)DbConnectionModelLoaderOptionsAdds the field filter.
AddTableFilter(Func<DbTableInfo, bool> filter)DbConnectionModelLoaderOptionsAdds the table filter.
DoNotPrettifyNames()DbConnectionModelLoaderOptionsSets the value Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions.PrettifyNames property to false. This function returns the same instance of Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions so it can be used in the method chaining calls.
DoNotReplaceToSingularNames()DbConnectionModelLoaderOptionsSets the value Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions.ReplaceToSingularNames property to false. This function returns the same instance of Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions so it can be used in the method chaining calls.
DoNotSplitTablesOnMultiReference()DbConnectionModelLoaderOptionsSets the value Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions.SplitTablesOnMultiReference property to false. This function returns the same instance of Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions so it can be used in the method chaining calls.
IgnoreViews()DbConnectionModelLoaderOptionsAdd the filter which makes model loader to ignore the views and process only the tables. This function returns the same instance of Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions so it can be used in the method chaining calls.
UseSchemas(String[] schemas)DbConnectionModelLoaderOptionsSpecifies which schemas will be used during loading the model.