Show / Hide Table of Contents

    Interface INamedEntityTypeBuilder<TEntity>

    Builder for fluent configuration of entity, which has alredy configured table name.

    Inherited Members
    IEntityTypeConvertersBuilder<TEntity>.UseConverterForProperties<TProperty>(IConverter)
    IEntityTypeConvertersBuilder<TEntity>.UseConverterForProperties<TProperty, TConverter>()
    IEntityTypePropertyBuilder<TEntity>.Property<TProperty>(Expression<Func<TEntity, TProperty>>)
    Namespace: Kros.KORM.Metadata
    Assembly: Kros.KORM.dll
    Syntax
    public interface INamedEntityTypeBuilder<TEntity> : IEntityTypeConvertersBuilder<TEntity>, IEntityTypePropertyBuilder<TEntity> where TEntity : class
    Type Parameters
    Name Description
    TEntity

    Type of entity. In general it is a class representing table in database.

    Methods

    HasPrimaryKey<TProperty>(Expression<Func<TEntity, TProperty>>)

    Configures which property represents primary key of the entity.

    Declaration
    IPrimaryKeyBuilder<TEntity> HasPrimaryKey<TProperty>(Expression<Func<TEntity, TProperty>> propertyExpression)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<TEntity, TProperty>> propertyExpression

    Expression which returns property representing primary key.

    Returns
    Type Description
    IPrimaryKeyBuilder<TEntity>

    Builder for further configuring of primary key.

    Type Parameters
    Name Description
    TProperty

    Property of the entity.

    Back to top KROS a.s.