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