SqlDataSource.Fill(IEnumerable<IParameter>) Method

Validates and executes all valid queries available in the SqlDataSource.Queries collection with the specified parameters.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

public override void Fill(
    IEnumerable<IParameter> sourceParameters
)
Public Overrides Sub Fill(
    sourceParameters As IEnumerable(Of IParameter)
)

Parameters

Name Type Description
sourceParameters IEnumerable<IParameter>

A collection of objects implementing the IParameter interface.

Remarks

If errors occur during data connection, a DatabaseConnectionException is thrown.

All queries are validated one by one. When validation errors occur, they are collected and returned by throwing a AggregateException. Use its InnerExceptions property to access a collection of QueryExecutionException objects (use their InnerException property to access an actual ValidationException).

If the validation succeeds, all queries are executed one by one. If any errors occur during the execution of each query, these errors are collected and returned by throwing a AggregateException. Use its InnerExceptions property to access a collection of QueryExecutionException objects (use their InnerException property to access an actual DevExpress.DataAccess.Native.Sql.SqlExecutionException).

To validate and execute only specific queries, use a corresponding Fill method overload with the queriesToFill parameter.

See Also