Interface IDatabaseSchemaLoader
Interface for loading database schema.
Namespace: Kros.Data.Schema
Assembly: Kros.Utils.dll
Syntax
public interface IDatabaseSchemaLoader
Methods
LoadSchema(Object)
Loads whole database schema in connection
.
Declaration
DatabaseSchema LoadSchema(object connection)
Parameters
Type | Name | Description |
---|---|---|
System.Object | connection | Database connection. |
Returns
Type | Description |
---|---|
DatabaseSchema | Schema of whole database. |
LoadTableSchema(Object, String)
Loads schema of table tableName
from database connection
.
Declaration
TableSchema LoadTableSchema(object connection, string tableName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | connection | Database connection. |
System.String | tableName | Name of the table to load schema. |
Returns
Type | Description |
---|---|
TableSchema | Table schema or null, if specified table does not exist. |
SupportsConnectionType(Object)
Checks, if specific loader can load schema from connection
.
Declaration
bool SupportsConnectionType(object connection)
Parameters
Type | Name | Description |
---|---|---|
System.Object | connection | Database connection. |
Returns
Type | Description |
---|---|
System.Boolean | true if loader can load schema, false otherwise. |