DatabaseQueryDataSourceBuilder.AsTrackableForChanges

DatabaseQueryDataSourceBuilder.AsTrackableForChanges method

Configure the resulting layer to track changes and create a data source to synchronize the changes made.

public DatabaseEditableDataSourceBuilder AsTrackableForChanges(string tableName, 
    string identityAttribute, bool overwriteSameKey = false, string dbFunc = "ST_GeomFromWKB")
ParameterTypeDescription
tableNameStringThe name of the table where the changes will be made.
identityAttributeStringAn attribute of a feature that will be treated as uniquely identifying the feature.
overwriteSameKeyBooleanIf this flag is set to true, then newly added features with a unique identifier the same that is already present in the layer, the current one will be overwritten, and the data will be read as updated if differences are found.
dbFuncStringFunction that will be supplied in SQL query to transform binary data into geographic data representation of the current database.

Return Value

DatabaseEditableDataSourceBuilder

See Also