Show / Hide Table of Contents

    Interface IPropertyBuilder<TEntity>

    Builder for fluent configuration of entity's property.

    Inherited Members
    IMappedPropertyBuilder<TEntity>.UseConverter<TCoverter>()
    IMappedPropertyBuilder<TEntity>.UseConverter(IConverter)
    IMappedPropertyBuilder<TEntity>.IgnoreConverter()
    IMappedPropertyBuilder<TEntity>.UseValueGeneratorOnInsert<TValueGenerator>()
    IMappedPropertyBuilder<TEntity>.UseValueGeneratorOnInsert(IValueGenerator)
    IMappedPropertyBuilder<TEntity>.UseValueGeneratorOnUpdate<TValueGenerator>()
    IMappedPropertyBuilder<TEntity>.UseValueGeneratorOnUpdate(IValueGenerator)
    IMappedPropertyBuilder<TEntity>.UseValueGeneratorOnInsertOrUpdate<TValueGenerator>()
    IMappedPropertyBuilder<TEntity>.UseValueGeneratorOnInsertOrUpdate(IValueGenerator)
    IMappedPropertyBuilder<TEntity>.InjectValue(Func<Object>)
    Namespace: Kros.KORM.Metadata
    Assembly: Kros.KORM.dll
    Syntax
    public interface IPropertyBuilder<TEntity> : IMappedPropertyBuilder<TEntity> where TEntity : class
    Type Parameters
    Name Description
    TEntity

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

    Methods

    HasColumnName(String)

    Configures column name for the property. Needed when column in the database has different name than the property itself.

    Declaration
    INamedPropertyBuilder<TEntity> HasColumnName(string columnName)
    Parameters
    Type Name Description
    System.String columnName

    Name of the column in database.

    Returns
    Type Description
    INamedPropertyBuilder<TEntity>

    Builder for additional configuration of the property.

    NoMap()

    Configures property as no mapping. The property will be ignored by KORM.

    Declaration
    IEntityTypePropertyBuilder<TEntity> NoMap()
    Returns
    Type Description
    IEntityTypePropertyBuilder<TEntity>

    Entity builder for configuring another properties.

    Extension Methods

    PropertyBuilderExtensions.UseCurrentTimeValueGenerator<TEntity>(IPropertyBuilder<TEntity>, ValueGenerated)
    Back to top KROS a.s.