IDatabaseEditableDataSource.SubmitChangesAsync

IDatabaseEditableDataSource.SubmitChangesAsync method

Allows you to save accumulated changes to the database.

public Task SubmitChangesAsync(VectorLayer layer, DbConnection connection, 
    DbTransaction transaction)
ParameterTypeDescription
layerVectorLayerA layer with the ability to track changes.
connectionDbConnectionAn open connection to the database.
transactionDbTransactionTransaction

Return Value

Task

Exceptions

exceptioncondition
InvalidOperationException

Remarks

In case the layer does not have the ability to track changes, an exception will be thrown InvalidOperationException. If the connection is not open, the InvalidOperationException exception will be thrown.

See Also