FireDAC.Comp.Client.TFDCustomMemTable

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Comp.Client.TFDAdaptedDataSetFireDAC.Comp.DataSet.TFDDataSetData.DB.TDataSetSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTFDCustomMemTable

Delphi

TFDCustomMemTable = class(TFDAdaptedDataSet)

C++

class PASCALIMPLEMENTATION TFDCustomMemTable : public TFDAdaptedDataSet

Properties

Type Visibility Source Unit Parent
class public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client FireDAC.Comp.Client

Description

This class implements an in-memory dataset.

Use TFDCustomMemTable to manage data in the client memory and optionally exchange the data with a DBMS.

In general, TFDCustomMemTable is an in-memory dataset. It can be populated directly by the code at run time without connecting to a database.

Example

  FDMemTable1.FieldDefs.Add('id', ftInteger);
  FDMemTable1.FieldDefs.Add('name', ftString, 20);
  FDMemTable1.Open;
  FDMemTable1.AppendRecord([1, 'MySQL']);
  FDMemTable1.AppendRecord([2, 'SQLite']);

TFDCustomMemTable can be populated from a database using the TFDTableAdapter and TFDCommand components. This can be considered advanced technique, because TFDQuery can be used for most DB data exchange operations.

This class hides some of the properties, allowing the descendant classes to control the properties' visibility. End users should use TFDMemTable.

See Also