ConnectionProviderSql.GlobalQueryParameterMode Field
Specifies how connection providers initialize command parameters. Use the QueryParameterMode property to change this setting for a specific connection provider.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Data.v24.2.dll
Declaration
Field Value
Type | Description |
---|---|
QueryParameterMode | A QueryParameterMode enumeration value. Specifies how to initialize command parameters. |
Remarks
The Default value is optimal for most applications. The following articles describe situations in which GlobalQueryParameterMode should be set to Legacy:
- XPO may throw OverflowException if String or Byte Array value length (size) is greater than the maximum allowed database column size
- XPO may throw InvalidCastException or SqlExecutionErrorException if parameter types (for update/read queries) do not match database column types
See Also