zoukankan      html  css  js  c++  java
  • FireDAC开发DataSnap应用系统【3】-使用TFDJSONDatasets的CRUD功能

    类别 说明
    TFDJSONDeltas 包含异动的delta的类别。客户端存放deltade对象
    TFDJSONDeltasWriter 把deltas写入TFDJSONDeltas
    TFDJSONDeltasApplyUpdates update数据到DB

    TFDJSONDeltasWriter.ListAdd()写入TFDJSONDeltas。参数是[name : delta]格式。

    function TServerMethods1.post(const ADeltaList:TFDJSONDeltas):Integer;
    var
      LApply : TFDJSONDeltasApplyUpdates;
    begin
      LApply := TFDJSONDeltasApplyUpdates.create(ADeltaList);
      Result := LApply.applyUpdates('name1',fdquery1.command);//name1是TFDJSONDeltasWriter.ListAdd()写入TFDJSONDeltas。参数是[name : delta]格式。
      if Lapply.errors.Count > 0 then
        raise Exception.Create(:apply.Errors.String.Text);
    end;
    =========================
    IFDJSONDeltasApplyUpdates = interface(IFDJSONDeltasReader)
    [‘{xxxxxxxxx-xxxxx-xxx-xxxx-xxxxxxxxxxxxx}’]
    function AppluUpdates(const AKey: string; const ASelectCommand: TFDCustomCommand):Integer;overload;
    function AppluUpdates(const Index: Integer; const ASelectCommand: TFDCustomCommand):Integer;overload;
    ......
    ......
    end;
  • 相关阅读:
    java上传1t文件
    上传1T文件
    超过20g的文件+上传
    文件批量下载
    下载超大文件的控件
    Java上传大文件夹
    Java超大文件上传解决办法
    vue+大文件上传控件
    cocos2dx3.1 win7安装步骤及编译到安桌
    Muller’s method (website)
  • 原文地址:https://www.cnblogs.com/usegear/p/13581111.html
Copyright © 2011-2022 走看看