TADAutoIncField represents integer auto incremental field in an AnyDAC dataset.
uADCompDataSet
Use TADAutoIncField to control client and server side auto incremental fields.
If AnyDAC recognizes resultset column as representing an auto incremental field, then it will automatically create TADAutoIncField for this column. Otherwise, you can manually create TADAutoIncField for integer column at design time using Dataset Editor.
Set ClientAutoIncrement property to True (default value) and dataset will generate auto incrementing value for each new record. This is at first usefull in CachedUpdates = True mode.
Set ServerAutoIncrement property to True (default value) and dataset will not require value for this column and will not include it into updates. But will refresh after posting new record to a DBMS.
Set GeneratorName property to the name of sequence / generator and dataset will automatically fetch next value and assign it to dataset new record column.
TADAutoIncField = class(TAutoIncField);
Auto-Incremental Fields, TADUpdateOptions.GeneratorName, TADUpdateOptions.FetchGeneratorsPoint, TADUpdateOptions.RefreshMode
|
What do you think about this topic? Send feedback!
|