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? DefaultSchemaField Value
ExcludedCatalogs
List of disallowed databases/catalogs.
public string?[]? ExcludedCatalogsField Value
- string[]
ExcludedSchemas
List of disallowed schemas/owners.
public string?[]? ExcludedSchemasField Value
- string[]
GenerateChar1AsString
public bool GenerateChar1AsStringField Value
GetAssociationMemberName
Optional custom name generation logic for association property.
public Func<ForeignKeySchema, string>? GetAssociationMemberNameField 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 GetForeignKeysField Value
GetProcedures
Enable or disable read of procedures and functions metadata. Default - enabled (true).
public bool GetProceduresField Value
GetTables
Enable or disable read of table schema. Default - enabled (true).
public bool GetTablesField Value
IgnoreSystemHistoryTables
Only for SQL Server. Doesn't return history table schema for temporal tables.
public bool IgnoreSystemHistoryTablesField Value
IncludedCatalogs
List of allowed databases/catalogs.
public string?[]? IncludedCatalogsField Value
- string[]
IncludedSchemas
List of allowed schemas/owners.
public string?[]? IncludedSchemasField Value
- string[]
LoadProcedure
Optional procedure metadata load filter. By default all procedures loaded.
public Func<ProcedureSchema, bool> LoadProcedureField 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>? LoadTableField Value
PreferProviderSpecificTypes
When set to true, will prefer generation of provider-specific types instead of general types.
public bool PreferProviderSpecificTypesField 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> ProcedureLoadingProgressField Value
StringComparer
String comparison logic for IncludedSchemas, ExcludedSchemas, IncludedCatalogs and ExcludedCatalogs values. Default is OrdinalIgnoreCase.
public StringComparer StringComparerField 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