Interface IApizrCrudMediator
Apizr mediator dedicated to cruding
public interface IApizrCrudMediator : IApizrCrudMediatorBase, IApizrMediatorBase
Methods
SendCreateCommand<TApiEntity>(TApiEntity, Action<IApizrRequestOptionsBuilder>)
Send a CreateCommand<TModelData> to Apizr using MediatR
Task<TApiEntity> SendCreateCommand<TApiEntity>(TApiEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
entityTApiEntityThe entity to create
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TApiEntity>
Type Parameters
TApiEntityThe api entity type
SendCreateCommand<TModelEntity, TApiEntity>(TModelEntity, Action<IApizrRequestOptionsBuilder>)
Send a mapped CreateCommand<TModelData> to Apizr using MediatR returning a mapped result
Task<TModelEntity> SendCreateCommand<TModelEntity, TApiEntity>(TModelEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
entityTModelEntityThe entity to create
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TModelEntity>
Type Parameters
TModelEntityThe model entity type to map from
TApiEntityThe api entity type to map to
SendDeleteCommand<TApiEntity, TApiEntityKey>(TApiEntityKey, Action<IApizrRequestOptionsBuilder>)
Send a DeleteCommand<T, TKey> to Apizr using MediatR
Task SendDeleteCommand<TApiEntity, TApiEntityKey>(TApiEntityKey key, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
Type Parameters
TApiEntityThe api entity type
TApiEntityKeyThe entity's crud key type
SendReadAllQuery<TReadAllResult>(Action<IApizrRequestOptionsBuilder>)
Send a ReadAllQuery<TReadAllResult> to Apizr using MediatR
Task<TReadAllResult> SendReadAllQuery<TReadAllResult>(Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TReadAllResult>
Type Parameters
TReadAllResultThe "ReadAll" query result type
SendReadAllQuery<TModelReadAllResult, TApiReadAllResult>(Action<IApizrRequestOptionsBuilder>)
Send a mapped ReadAllQuery<TReadAllResult> to Apizr using MediatR returning mapped result
Task<TModelReadAllResult> SendReadAllQuery<TModelReadAllResult, TApiReadAllResult>(Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TModelReadAllResult>
Type Parameters
TModelReadAllResultThe model result type to map to
TApiReadAllResultThe api result type to map from
SendReadAllQuery<TReadAllResult, TReadAllParams>(TReadAllParams, Action<IApizrRequestOptionsBuilder>)
Send a ReadAllQuery<TReadAllResult> to Apizr using MediatR
Task<TReadAllResult> SendReadAllQuery<TReadAllResult, TReadAllParams>(TReadAllParams readAllParams, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
readAllParamsTReadAllParamsThe read all filters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TReadAllResult>
Type Parameters
TReadAllResultThe api result type
TReadAllParamsThe ReadAll parameters type
SendReadAllQuery<TModelReadAllResult, TApiReadAllResult, TReadAllParams>(TReadAllParams, Action<IApizrRequestOptionsBuilder>)
Send a mapped ReadAllQuery<TReadAllResult> to Apizr using MediatR returning a mapped result
Task<TModelReadAllResult> SendReadAllQuery<TModelReadAllResult, TApiReadAllResult, TReadAllParams>(TReadAllParams readAllParams, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
readAllParamsTReadAllParamsThe read all filters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TModelReadAllResult>
Type Parameters
TModelReadAllResultThe model result type to map to
TApiReadAllResultThe api result type to map from
TReadAllParamsThe ReadAll parameters type
SendReadQuery<TApiEntity, TApiEntityKey>(TApiEntityKey, Action<IApizrRequestOptionsBuilder>)
Send a ReadQuery<TResultData, TKey> to Apizr using MediatR
Task<TApiEntity> SendReadQuery<TApiEntity, TApiEntityKey>(TApiEntityKey key, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TApiEntity>
Type Parameters
TApiEntityThe api entity type
TApiEntityKeyThe entity's crud key type
SendReadQuery<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey, Action<IApizrRequestOptionsBuilder>)
Send a ReadQuery<TResultData, TKey> to Apizr using MediatR returning a mapped result
Task<TModelEntity> SendReadQuery<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey key, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<TModelEntity>
Type Parameters
TModelEntityThe model entity type to map from
TApiEntityThe api entity type to map to
TApiEntityKeyThe entity's crud key type
SendSafeCreateCommand<TApiEntity>(TApiEntity, Action<IApizrRequestOptionsBuilder>)
Send a SafeCreateCommand<TModelData> to Apizr using MediatR
Task<IApizrResponse<TApiEntity>> SendSafeCreateCommand<TApiEntity>(TApiEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
entityTApiEntityThe entity to create
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TApiEntity>>
Type Parameters
TApiEntityThe api entity type
SendSafeCreateCommand<TModelEntity, TApiEntity>(TModelEntity, Action<IApizrRequestOptionsBuilder>)
Send a mapped SafeCreateCommand<TModelData> to Apizr using MediatR returning a mapped result
Task<IApizrResponse<TModelEntity>> SendSafeCreateCommand<TModelEntity, TApiEntity>(TModelEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
entityTModelEntityThe entity to create
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TModelEntity>>
Type Parameters
TModelEntityThe model entity type to map from
TApiEntityThe api entity type to map to
SendSafeDeleteCommand<TApiEntity, TApiEntityKey>(TApiEntityKey, Action<IApizrRequestOptionsBuilder>)
Send a SafeDeleteCommand<T, TKey> to Apizr using MediatR
Task<IApizrResponse> SendSafeDeleteCommand<TApiEntity, TApiEntityKey>(TApiEntityKey key, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
Type Parameters
TApiEntityThe api entity type
TApiEntityKeyThe entity's crud key type
SendSafeReadAllQuery<TReadAllResult>(Action<IApizrRequestOptionsBuilder>)
Send a SafeReadAllQuery<TReadAllResult> to Apizr using MediatR
Task<IApizrResponse<TReadAllResult>> SendSafeReadAllQuery<TReadAllResult>(Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TReadAllResult>>
Type Parameters
TReadAllResultThe "ReadAll" query result type
SendSafeReadAllQuery<TModelReadAllResult, TApiReadAllResult>(Action<IApizrRequestOptionsBuilder>)
Send a mapped SafeReadAllQuery<TReadAllResult> to Apizr using MediatR returning mapped result
Task<IApizrResponse<TModelReadAllResult>> SendSafeReadAllQuery<TModelReadAllResult, TApiReadAllResult>(Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TModelReadAllResult>>
Type Parameters
TModelReadAllResultThe model result type to map to
TApiReadAllResultThe api result type to map from
SendSafeReadAllQuery<TReadAllResult, TReadAllParams>(TReadAllParams, Action<IApizrRequestOptionsBuilder>)
Send a SafeReadAllQuery<TReadAllResult> to Apizr using MediatR
Task<IApizrResponse<TReadAllResult>> SendSafeReadAllQuery<TReadAllResult, TReadAllParams>(TReadAllParams readAllParams, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
readAllParamsTReadAllParamsThe read all filters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TReadAllResult>>
Type Parameters
TReadAllResultThe api result type
TReadAllParamsThe ReadAll parameters type
SendSafeReadAllQuery<TModelReadAllResult, TApiReadAllResult, TReadAllParams>(TReadAllParams, Action<IApizrRequestOptionsBuilder>)
Send a mapped SafeReadAllQuery<TReadAllResult> to Apizr using MediatR returning a mapped result
Task<IApizrResponse<TModelReadAllResult>> SendSafeReadAllQuery<TModelReadAllResult, TApiReadAllResult, TReadAllParams>(TReadAllParams readAllParams, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
readAllParamsTReadAllParamsThe read all filters
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TModelReadAllResult>>
Type Parameters
TModelReadAllResultThe model result type to map to
TApiReadAllResultThe api result type to map from
TReadAllParamsThe ReadAll parameters type
SendSafeReadQuery<TApiEntity, TApiEntityKey>(TApiEntityKey, Action<IApizrRequestOptionsBuilder>)
Send a SafeReadQuery<TResultData, TKey> to Apizr using MediatR
Task<IApizrResponse<TApiEntity>> SendSafeReadQuery<TApiEntity, TApiEntityKey>(TApiEntityKey key, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TApiEntity>>
Type Parameters
TApiEntityThe api entity type
TApiEntityKeyThe entity's crud key type
SendSafeReadQuery<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey, Action<IApizrRequestOptionsBuilder>)
Send a SafeReadQuery<TResultData, TKey> to Apizr using MediatR returning a mapped result
Task<IApizrResponse<TModelEntity>> SendSafeReadQuery<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey key, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
- Task<IApizrResponse<TModelEntity>>
Type Parameters
TModelEntityThe model entity type to map from
TApiEntityThe api entity type to map to
TApiEntityKeyThe entity's crud key type
SendSafeUpdateCommand<TApiEntity, TApiEntityKey>(TApiEntityKey, TApiEntity, Action<IApizrRequestOptionsBuilder>)
Send a SafeUpdateCommand<TKey, TRequestData> to Apizr using MediatR
Task<IApizrResponse> SendSafeUpdateCommand<TApiEntity, TApiEntityKey>(TApiEntityKey key, TApiEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
entityTApiEntityThe entity to update
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
Type Parameters
TApiEntityThe api entity type
TApiEntityKeyThe entity's crud key type
SendSafeUpdateCommand<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey, TModelEntity, Action<IApizrRequestOptionsBuilder>)
Send a mapped SafeUpdateCommand<TKey, TRequestData> to Apizr using MediatR
Task<IApizrResponse> SendSafeUpdateCommand<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey key, TModelEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
entityTModelEntityThe entity to update
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
Type Parameters
TModelEntityThe model entity type to map from
TApiEntityThe api entity type to map to
TApiEntityKeyThe entity's crud key type
SendUpdateCommand<TApiEntity, TApiEntityKey>(TApiEntityKey, TApiEntity, Action<IApizrRequestOptionsBuilder>)
Send a UpdateCommand<TKey, TRequestData> to Apizr using MediatR
Task SendUpdateCommand<TApiEntity, TApiEntityKey>(TApiEntityKey key, TApiEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
entityTApiEntityThe entity to update
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
Type Parameters
TApiEntityThe api entity type
TApiEntityKeyThe entity's crud key type
SendUpdateCommand<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey, TModelEntity, Action<IApizrRequestOptionsBuilder>)
Send a mapped UpdateCommand<TKey, TRequestData> to Apizr using MediatR
Task SendUpdateCommand<TModelEntity, TApiEntity, TApiEntityKey>(TApiEntityKey key, TModelEntity entity, Action<IApizrRequestOptionsBuilder> optionsBuilder = null)
Parameters
keyTApiEntityKeyThe entity key
entityTModelEntityThe entity to update
optionsBuilderAction<IApizrRequestOptionsBuilder>Options provided to the request
Returns
Type Parameters
TModelEntityThe model entity type to map from
TApiEntityThe api entity type to map to
TApiEntityKeyThe entity's crud key type