MyDAC 5.5; automatic locking
Posted: Thu 22 May 2008 14:33
You announced this to the MyDAC 5.50 beta:
Added support of automatic records locking
Now I'm using this code:
Does it mean that this code above is not needed anymore 
Added support of automatic records locking
Now I'm using this code:
Code: Select all
procedure TDM.MyQuery1BeforeEdit(DataSet: TDataSet);
var MyQuery : TMyQuery;
begin
MyQuery := (DataSet as TMyQuery);
if not MyQuery.Connection.InTransaction then
MyQuery.Connection.StartTransaction;
MyQuery.Lock(lrImmediately);
end;