Search Results for

    Show / Hide Table of Contents

    Interface IInsertRelationBuilder<TRelationEntity, TRootEntity>

    Represents a insert relation builder to configure the insert.

    Inherited Members
    IBaseInsertRelationBuilder<TRelationEntity, TRootEntity>.WithAll()
    IBaseInsertRelationBuilder<TRelationEntity, TRootEntity>.With<TToEntity>(Expression<Func<TRootEntity, TToEntity>>)
    IBaseInsertRelationBuilder<TRelationEntity, TRootEntity>.With<TToEntity>(Expression<Func<TRootEntity, IList<TToEntity>>>)
    IBaseInsertRelationBuilder<TRelationEntity, TRootEntity>.With<TToEntity>(Expression<Func<TRootEntity, List<TToEntity>>>)
    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 IInsertRelationBuilder<TRelationEntity, TRootEntity> : 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 inserted with.

    TRootEntity

    The root type of the entity.

    Methods

    | Improve this Doc View Source

    AndWith<TToEntity>(Expression<Func<TRelationEntity, TToEntity>>)

    Allows to configure the inserted relations with the current insert.

    Declaration
    IInsertRelationBuilder<TToEntity, TRootEntity> AndWith<TToEntity>(Expression<Func<TRelationEntity, TToEntity>> propertySelector)
        where TToEntity : class, new()
    Parameters
    Type Name Description
    Expression<Func<TRelationEntity, 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

    AndWith<TToEntity>(Expression<Func<TRelationEntity, IList<TToEntity>>>)

    Allows to configure the inserted relations with the current insert.

    Declaration
    IInsertRelationBuilder<TToEntity, TRootEntity> AndWith<TToEntity>(Expression<Func<TRelationEntity, IList<TToEntity>>> propertySelector)
        where TToEntity : class, new()
    Parameters
    Type Name Description
    Expression<Func<TRelationEntity, 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

    AndWith<TToEntity>(Expression<Func<TRelationEntity, List<TToEntity>>>)

    Allows to configure the inserted relations with the current insert.

    Declaration
    IInsertRelationBuilder<TToEntity, TRootEntity> AndWith<TToEntity>(Expression<Func<TRelationEntity, List<TToEntity>>> propertySelector)
        where TToEntity : class, new()
    Parameters
    Type Name Description
    Expression<Func<TRelationEntity, 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.

    Theme

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