Search Results for

    Show / Hide Table of Contents

    Interface IBaseInsertRelationBuilder<TRelationEntity, TRootEntity>

    Represents a base insert relation builder to configure the insert.

    Inherited Members
    IInsertCommandBuilder<TRootEntity>.InsertAsync(TRootEntity, CancellationToken)
    IInsertCommandBuilder<TRootEntity>.InsertAsync(IList<TRootEntity>, CancellationToken)
    ISpecficVenflowCommandBuilder<IInsertCommand<TRootEntity>, IBaseInsertRelationBuilder<TRootEntity, TRootEntity>>.Build()
    ISpecficVenflowCommandBuilder<IInsertCommand<TRootEntity>, IBaseInsertRelationBuilder<TRootEntity, TRootEntity>>.Log(Boolean)
    ISpecficVenflowCommandBuilder<IInsertCommand<TRootEntity>, IBaseInsertRelationBuilder<TRootEntity, TRootEntity>>.LogTo(LoggerCallback)
    ISpecficVenflowCommandBuilder<IInsertCommand<TRootEntity>, IBaseInsertRelationBuilder<TRootEntity, TRootEntity>>.LogTo(LoggerCallback[])
    Namespace: Venflow.Commands
    Assembly: Venflow.dll
    Syntax
    public interface IBaseInsertRelationBuilder<TRelationEntity, TRootEntity> : IInsertCommandBuilder<TRootEntity>, ISpecficVenflowCommandBuilder<IInsertCommand<TRootEntity>, IBaseInsertRelationBuilder<TRootEntity, TRootEntity>> where TRelationEntity : class, new()
        where TRootEntity : class, new()
    Type Parameters
    Name Description
    TRelationEntity

    The type of the entity which will be joined with.

    TRootEntity

    The root type of the entity.

    Methods

    | Improve this Doc View Source

    With<TToEntity>(Expression<Func<TRootEntity, TToEntity>>)

    Allows to configure the inserted relations with the current insert.

    Declaration
    IInsertRelationBuilder<TToEntity, TRootEntity> With<TToEntity>(Expression<Func<TRootEntity, TToEntity>> propertySelector)
        where TToEntity : class, new()
    Parameters
    Type Name Description
    Expression<Func<TRootEntity, TToEntity>> propertySelector

    A lambda expression representing the navigation property which should get inserted with the root entity during insertion.

    Returns
    Type Description
    IInsertRelationBuilder<TToEntity, TRootEntity>

    An object that can be used to further configure the operation.

    Type Parameters
    Name Description
    TToEntity

    The type of the inserted entity.

    | Improve this Doc View Source

    With<TToEntity>(Expression<Func<TRootEntity, IList<TToEntity>>>)

    Allows to configure the inserted relations with the current insert.

    Declaration
    IInsertRelationBuilder<TToEntity, TRootEntity> With<TToEntity>(Expression<Func<TRootEntity, IList<TToEntity>>> propertySelector)
        where TToEntity : class, new()
    Parameters
    Type Name Description
    Expression<Func<TRootEntity, IList<TToEntity>>> propertySelector

    A lambda expression representing the navigation property which should get inserted with the root entity during insertion.

    Returns
    Type Description
    IInsertRelationBuilder<TToEntity, TRootEntity>

    An object that can be used to further configure the operation.

    Type Parameters
    Name Description
    TToEntity

    The type of the inserted entity.

    | Improve this Doc View Source

    With<TToEntity>(Expression<Func<TRootEntity, List<TToEntity>>>)

    Allows to configure the inserted relations with the current insert.

    Declaration
    IInsertRelationBuilder<TToEntity, TRootEntity> With<TToEntity>(Expression<Func<TRootEntity, List<TToEntity>>> propertySelector)
        where TToEntity : class, new()
    Parameters
    Type Name Description
    Expression<Func<TRootEntity, List<TToEntity>>> propertySelector

    A lambda expression representing the navigation property which should get inserted with the root entity during insertion.

    Returns
    Type Description
    IInsertRelationBuilder<TToEntity, TRootEntity>

    An object that can be used to further configure the operation.

    Type Parameters
    Name Description
    TToEntity

    The type of the inserted entity.

    | Improve this Doc View Source

    WithAll()

    Allows to configure the current insert, to insert all populated relations which can be reached.

    Declaration
    IBaseInsertRelationBuilder<TRootEntity, TRootEntity> WithAll()
    Returns
    Type Description
    IBaseInsertRelationBuilder<TRootEntity, TRootEntity>

    An object that can be used to further configure the operation.

    Theme

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 Twenty