Namespace Kros.Data.Schema
Classes
ColumnSchema
Schema of a database table column.
ColumnSchema.DefaultValues
Columns' default values for individual data types.
ColumnSchemaCollection
List of columns for table TableSchema.
DatabaseSchema
Database schema.
DatabaseSchemaCache
Implementation of IDatabaseSchemaCache. It allows to load database schemas after adding appropriate loaders (AddSchemaLoader(IDatabaseSchemaLoader, ISchemaCacheKeyGenerator)). Loading of a database schema is quite slow, that's why loaded schemas are cached. On next request for the same schema, it is not loaded from database, but returned from cache.
DatabaseSchemaLoader
Helper class for simple loading of database schemas. It contains inner list of different loaders, so it can be used for loading database schema for different databases. Fresh database schema is loaded for every request, it means, loaded schemas are not cached.
DefaultValueParsers
Standard parsers for columns' default values. The default values in database are stored as string and it is necessary to convert them to the specific column's type. If conversion to desired type fails, the returned value is always null.
ForeignKeySchema
The schema of the foreign key of the database table.
ForeignKeySchemaCollection
List of foreign keys for table TableSchema.
IndexColumnSchema
Schema of a column of an index.
IndexColumnSchemaCollection
List of index columns.
IndexSchema
Schema of a table's index.
IndexSchemaCollection
List of indexes for table TableSchema.
TableSchema
Schema of a database table.
TableSchemaCollection
List of tables for DatabaseSchema.
Interfaces
IDatabaseSchemaCache
Interface for classes which loads and caches database schema.
IDatabaseSchemaLoader
Interface for loading database schema.
IDatabaseSchemaLoader<T>
ISchemaCacheKeyGenerator
Cache key generator for DatabaseSchemaCache.
ISchemaCacheKeyGenerator<T>
Enums
ForeignKeyRule
Foreign key rule. Defines what to do with child records when the value of parent record changes or is deleted.
IndexType
Table index type.
SortOrder
Sort order of an index column.
Delegates
DefaultValueParsers.ParseDefaultValueFunction
Delegate for function which parses default value.