Skip to content

DbConnectionLoaderOptions class

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

public class Korzh.EasyQuery.Db.DbConnectionLoaderOptions
TypeNameDescription
IReadOnlyList<Func<DbFieldInfo, Boolean>>FieldFiltersGets the field filters. Each filter is a function which returns true for the field that should be processed.
BooleanReplaceToSingularNamesGets 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.
IReadOnlyList<Func<DbTableInfo, Boolean>>TableFiltersGets the table filters. Each filter is a function which returns true for the tables that should be processed.
TypeNameDescription
DbConnectionLoaderOptionsAddFieldFilter(Func<DbFieldInfo, Boolean> filter)Adds the field filter.
DbConnectionLoaderOptionsAddTableFilter(Func<DbTableInfo, Boolean> filter)Adds the table filter.
DbConnectionLoaderOptionsDoNotReplaceToSingularNames()Sets the value Korzh.EasyQuery.Db.DbConnectionLoaderOptions.ReplaceToSingularNames property to false. This function returns the same instance of Korzh.EasyQuery.Db.DbConnectionLoaderOptions so it can be used in the method chaining calls.
DbConnectionLoaderOptionsIgnoreViews()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.DbConnectionLoaderOptions so it can be used in the method chaining calls.