ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / CollectionViewHelper Class / BatchEdit<T> Method
The type of data record
The request data
The edit action
The read action provides the newest data.






In This Topic
    BatchEdit<T> Method
    In This Topic
    Edits batch data accroding to the request and the edit action.
    Syntax
    'Declaration
     
    
    Public Shared Function BatchEdit(Of T)( _
       ByVal requestData As CollectionViewBatchEditRequest(Of T), _
       ByVal editAction As System.Func(Of BatchOperatingData(Of T),CollectionViewResponse(Of T)), _
       ByVal read As System.Func(Of IEnumerable(Of T)) _
    ) As CollectionViewResponse(Of T)
    'Usage
     
    
    Dim requestData As CollectionViewBatchEditRequest(Of T)
    Dim editAction As System.Func(Of BatchOperatingData(Of T),CollectionViewResponse(Of T))
    Dim read As System.Func(Of IEnumerable(Of T))
    Dim value As CollectionViewResponse(Of T)
     
    value = CollectionViewHelper.BatchEdit(Of T)(requestData, editAction, read)
    public static CollectionViewResponse<T> BatchEdit<T>( 
       CollectionViewBatchEditRequest<T> requestData,
       System.Func<BatchOperatingData<T>,CollectionViewResponse<T>> editAction,
       System.Func<IEnumerable<T>> read
    )
    public function BatchEdit( 
        requestData: CollectionViewBatchEditRequest;
        editAction: System.Func;
        read: System.Func
    ): CollectionViewResponse; static; 
    public static function BatchEdit( 
       requestData : CollectionViewBatchEditRequest,
       editAction : System.Func,
       read : System.Func
    ) : CollectionViewResponse;
    public: static CollectionViewResponse<T*>* BatchEdit<T>( 
       CollectionViewBatchEditRequest<T*>* requestData,
       System.Func<BatchOperatingData<T*>*,CollectionViewResponse<T*>*>* editAction,
       System.Func<IEnumerable<T*>*>* read
    ) 
    public:
    static CollectionViewResponse<T^>^ BatchEditgeneric<typename T>
    ( 
       CollectionViewBatchEditRequest<T^>^ requestData,
       System.Func<BatchOperatingData<T^>^,CollectionViewResponse<T^>^>^ editAction,
       System.Func<IEnumerable<T^>^>^ read
    ) 

    Parameters

    requestData
    The request data
    editAction
    The edit action
    read
    The read action provides the newest data.

    Type Parameters

    T
    The type of data record

    Return Value

    The response data
    See Also