Interface IInsertRelationBuilder<TRelationEntity, TRootEntity>
Represents a insert relation builder to configure the insert.
Inherited Members
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 SourceAndWith<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. |
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. |
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. |