dbconnectionmodelloaderoptions-class
Represents different options for Korzh.EasyQuery.Services.DbConnectionModelLoader class
public class Korzh.EasyQuery.Db.DbConnectionModelLoaderOptions
Assembly: Korzh.EasyQuery.Db.dll
Constructors
Name | Type | Description |
---|---|---|
DbConnectionModelLoaderOptions() | void |
Properties
Name | Type | Description |
---|---|---|
FieldFilters | IReadOnlyList <Func <DbFieldInfo, bool >> | Gets the field filters. Each filter is a function which returns |
HideKeyFields | bool | Gets a value indicating whether we need to hide key fields. |
PrettifyNames | bool | Gets a value indicating whether we need to prettify table and column names |
ReplaceToSingularNames | bool | Gets 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. |
Schemas | IReadOnlyList <string > | Gets the list of schemas. |
SplitTablesOnMultiReference | bool | Split one table on two (or more) if there are multi-references between two tables |
TableFilters | IReadOnlyList <Func <DbTableInfo, bool >> | Gets the table filters. Each filter is a function which returns |
UseNameColumnsInLookups | bool | Gets 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
Name | Type | Description |
---|---|---|
AddFieldFilter(Func <DbFieldInfo, bool > filter) | DbConnectionModelLoaderOptions | Adds the field filter. |
AddTableFilter(Func <DbTableInfo, bool > filter) | DbConnectionModelLoaderOptions | Adds the table filter. |
DoNotPrettifyNames() | DbConnectionModelLoaderOptions | Sets 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() | DbConnectionModelLoaderOptions | Sets 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() | DbConnectionModelLoaderOptions | Sets 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() | DbConnectionModelLoaderOptions | Add 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) | DbConnectionModelLoaderOptions | Specifies which schemas will be used during loading the model. |