fdmemtable 提交更新时不需要更新的字段自动提交

Thenext / 2023-09-06 / 原文

AutoGenerateValue 值要设置为arNone。如果设置成arDefault或是arAutoInc 时会自动生成数据提交到中间件。

 

UpdateMode要设置为upWhereKeyOnly,并在cdsRecord的主键(或其他不被修改的字段)的ProviderFlags的pfInKey设置为true。pfupDate pfinWhere 设置为false。