FireDAC.Comp.DataSet.TFDDataSet.Release

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDDataSet

Delphi

procedure Release;

C++

void __fastcall Release();

Description

Releases all the dataset cursors.

The Release method call releases all the dataset cursors, but does not close it. After this call no more cursors are accessible. As a result, the dataset will not fetch any more records from the cursor and SourceEOF will be True

If ResourceOptions.AutoFetchAll is True, then before releasing the cursors, the dataset fetches all the remaining records from the current cursor. If it is False and not all records are fetched, then an exception is raised. The application can explicitly fetch all the dataset records by calling the FetchAll method. 

The Disconnect method is similar to the Release method, but it also unprepares a command.

See Also