EMS.DataSetResource.TEMSDataSetResourceMappingMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TEMSDataSetResourceMappingMode = (rmGuess, rmEntityToFields, rmEntityToRecord,
rmEntityToParams);

C++

enum DECLSPEC_DENUM TEMSDataSetResourceMappingMode : unsigned char { rmGuess, rmEntityToFields, rmEntityToRecord, rmEntityToParams };

Properties

Type Visibility Source Unit Parent
enum public
EMS.DataSetResource.pas
EMS.DataSetResource.hpp
EMS.DataSetResource EMS.DataSetResource

Description

Enumerated type specifying how a JSON object is mapped to a dataset API.

The following parameters can be used:

  • rmEntityToFields - JSON object fields are mapped to a subset of dataset fields.
  • rmEntityToParams - JSON object fields are mapped to a dataset parameter.
  • rmEntityToRecord - JSON object fields are mapped to a dataset record and all dataset fields.
  • rmGuess - Mapping mode selection depends on a dataset and its DB command type. When the command type is a SQL SELECT query or a table dataset, rmEntityToRecord is used; otherwise, rmEntityToParams.