Show / Hide Table of Contents

    Class DatabaseMapper

    Mapper for database. Map object types to database informations.

    Inheritance
    System.Object
    DatabaseMapper
    Implements
    IDatabaseMapper
    Namespace: Kros.KORM.Metadata
    Assembly: Kros.KORM.dll
    Syntax
    public class DatabaseMapper : IDatabaseMapper

    Constructors

    DatabaseMapper(IModelMapper)

    Initializes a new instance of the DatabaseMapper class.

    Declaration
    public DatabaseMapper(IModelMapper modelMapper)
    Parameters
    Type Name Description
    IModelMapper modelMapper

    The model mapper.

    Methods

    GetInjector<T>()

    Get property service injector.

    Declaration
    public 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
    public 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
    public TableInfo GetTableInfo<T>()
    Returns
    Type Description
    TableInfo

    Database table info for model.

    Type Parameters
    Name Description
    T

    Model type.

    Implements

    IDatabaseMapper

    See Also

    IDatabaseMapper
    Back to top KROS a.s.