Show / Hide Table of Contents

    Class ModelConfigurationBuilder

    Provides a simple fluent API for building mapping definition between CLR entities and database objects.

    Inheritance
    System.Object
    ModelConfigurationBuilder
    Namespace: Kros.KORM.Metadata
    Assembly: Kros.KORM.dll
    Syntax
    public class ModelConfigurationBuilder

    Methods

    Entity<TEntity>()

    Returns an object that can be used to configure of a given entity type.

    Declaration
    public IEntityTypeBuilder<TEntity> Entity<TEntity>()
    
        where TEntity : class
    Returns
    Type Description
    IEntityTypeBuilder<TEntity>

    An object that can be used to configure of a given entity type.

    Type Parameters
    Name Description
    TEntity

    Entity type.

    Table(String)

    Returns an object that can be used to configure behavior for all entities over table tableName.

    Declaration
    public ITableBuilder Table(string tableName)
    Parameters
    Type Name Description
    System.String tableName

    Name of the table.

    Returns
    Type Description
    ITableBuilder

    An object that can be used to configure behavior for all entities over table tableName.

    Back to top KROS a.s.