The requested page is not available for the requested platform. You are viewing the content for Default platform.

CriteriaOperator.LegacyToString(CriteriaOperator) Method

Returns the string representation of a specified criteria.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Core.v19.2.dll

Declaration

public static string LegacyToString(
    CriteriaOperator criteria
)
Public Shared Function LegacyToString(
    criteria As CriteriaOperator
) As String

Parameters

Name Type Description
criteria CriteriaOperator

A CriteriaOperator instance specifying the criteria used to convert to a string equivalent.

Returns

Type Description
String

A string equivalent of the criteria.

Remarks

Unlike the CriteriaOperator.ToString method, the LegacyToString method removes value suffixes (such as 'm', 'M', 'l', 'L', 'f', 'F', etc.) used to specify types of numeric literals in criteria operands. You can call the LegacyToString method to display the returned string in a UI, or save it to an application log. However, this string is actually not in SQL format and cannot be considered as such. If you want to use the string for building SQL queries or for filtering System.Data.DataView, use the approach described in the How to convert the CriteriaOperator to the corresponding filter string in order to use it for building SQL queries or for filtering the DataView Knowledge Base article.

See Also