FireDAC.Comp.Client.TFDCustomSchemaAdapter.LoadFromFile
| [–] Properties | |
|---|---|
| Type: procedure function
| |
| Visibility: public | |
| Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
| Unit: FireDAC.Comp.Client | |
| Parent: TFDCustomSchemaAdapter | |
Delphi
procedure LoadFromFile(const AFileName: String = ''; AFormat: TFDStorageFormat = sfAuto);
C++
void __fastcall LoadFromFile(const System::UnicodeString AFileName = System::UnicodeString(), Firedac::Stan::Intf::TFDStorageFormat AFormat = (Firedac::Stan::Intf::TFDStorageFormat)(0x0));
Description
Loads the content of the datasets associated with TFDCustomSchemaAdapter from a file.
Call the LoadFromFile procedure to load the content of the datasets associated with TFDCustomSchemaAdapter from a specific file with a specific format.
AFileName is the name of the file containing the adapter to load. If the file does not exist, an exception is raised.
AFormat is the file format:
sfXML: an XML file.sfBinary: a binary file with custom FireDAC format.sfAuto: the format is determined by theAFileNameextention: ".XML" - XML file, ".ADB" / ".BIN" / ".DAT"--binary file.
Note: If the
AFileNamedoes not have an extension, the format is determined by ResourceOptions.DefaultStoreExt, provided that it is specified. Otherwise, it is determined by ResourceOptions.DefaultStoreFormat.