Skip to main content
A newer version of this page is available. .

QueryParameterMode Enum

The enumeration describes how connection providers initialize command parameters.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v21.1.dll

NuGet Package: DevExpress.Data

Declaration

public enum QueryParameterMode

Members

Name Description Comments
Default

When Always Encrypted is enabled, the default behavior is the same as SetTypeAndSize, otherwise, providers work in SetType mode.

Legacy

A connection provider leaves the DbType, Precision, Scale, and Size properties unassigned.

For backward compatibility only.

SetType

A connection provider initializes only the DbType property.

This mode is optimal for most applications.

SetTypeAndSize

A connection provider initializes the DbType, Precision, Scale, and Size properties.

Use this mode to support the Always Encrypted feature.

See Also