Interface IDatabaseMapper
Interface, which describe mapper for database. Map object types to database informations.
Namespace: Kros.KORM.Metadata
Assembly: Kros.KORM.dll
Syntax
public interface IDatabaseMapper
Methods
GetInjector<T>()
Get property service injector.
Declaration
IInjector GetInjector<T>()
Returns
| Type | Description |
|---|---|
| IInjector | Service property injector. |
Type Parameters
| Name | Description |
|---|---|
| T | Model type. |
GetTableInfo(Type)
Gets the table information by model type.
Declaration
TableInfo GetTableInfo(Type modelType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | modelType | Type of the model. |
Returns
| Type | Description |
|---|---|
| TableInfo | Database table info for model. |
GetTableInfo<T>()
Gets the table information by model type.
Declaration
TableInfo GetTableInfo<T>()
Returns
| Type | Description |
|---|---|
| TableInfo | Database table info for model. |
Type Parameters
| Name | Description |
|---|---|
| T | Model type. |