Class GetSchemaOptions
- Namespace
- LinqToDB.SchemaProvider
- Assembly
- linq2db.dll
Defines schema load options.
public class GetSchemaOptions
- Inheritance
-
GetSchemaOptions
- Derived
- Extension Methods
Fields
DefaultSchema
Default Schema name.
public string? DefaultSchema
Field Value
ExcludedCatalogs
List of disallowed databases/catalogs.
public string?[]? ExcludedCatalogs
Field Value
- string[]
ExcludedSchemas
List of disallowed schemas/owners.
public string?[]? ExcludedSchemas
Field Value
- string[]
GenerateChar1AsString
public bool GenerateChar1AsString
Field Value
GetAssociationMemberName
Optional custom name generation logic for association property.
public Func<ForeignKeySchema, string>? GetAssociationMemberName
Field Value
GetForeignKeys
Enable or disable read of foreign keys. Default - enabled (true
).
Disabe could be useful at least for Access, as it could crash on some database files.
public bool GetForeignKeys
Field Value
GetProcedures
Enable or disable read of procedures and functions metadata. Default - enabled (true
).
public bool GetProcedures
Field Value
GetTables
Enable or disable read of table schema. Default - enabled (true
).
public bool GetTables
Field Value
IgnoreSystemHistoryTables
Only for SQL Server. Doesn't return history table schema for temporal tables.
public bool IgnoreSystemHistoryTables
Field Value
IncludedCatalogs
List of allowed databases/catalogs.
public string?[]? IncludedCatalogs
Field Value
- string[]
IncludedSchemas
List of allowed schemas/owners.
public string?[]? IncludedSchemas
Field Value
- string[]
LoadProcedure
Optional procedure metadata load filter. By default all procedures loaded.
public Func<ProcedureSchema, bool> LoadProcedure
Field Value
LoadTable
Optinal callback to filter loaded tables. receives object with table details and return boolean flag
to indicate that table should be loaded (true
) or skipped (false
).
public Func<LoadTableData, bool>? LoadTable
Field Value
PreferProviderSpecificTypes
When set to true, will prefer generation of provider-specific types instead of general types.
public bool PreferProviderSpecificTypes
Field Value
ProcedureLoadingProgress
Optional callback to report procedure metadata load progress. First parameter contains total number of discovered procedures. Second parameter provides position of currently loaded procedure.
public Action<int, int> ProcedureLoadingProgress
Field Value
StringComparer
String comparison logic for IncludedSchemas, ExcludedSchemas, IncludedCatalogs and ExcludedCatalogs values. Default is OrdinalIgnoreCase.
public StringComparer StringComparer
Field Value
UseSchemaOnly
if set to true, SchemaProvider uses SchemaOnly to get SqlServer metadata. Otherwise the sp_describe_first_result_set sproc is used.
public bool UseSchemaOnly