Support calls to ToString() in Linq queries

Description

It would be very helpful if we could use either "x.Property.ToString()" or "Convert.ToString(x.Property)" in Linq queries where "Property" is of a type that can be converted to a string in SQL.

For example, I'd like to create the following SQL query with a Linq query:

SELECT *
FROM table
WHERE to_char(id) like '%123%';

Environment

None

Activity

Show:

Fabio Maulo 
July 30, 2011 at 2:11 PM

Closed after final release of NH3.2.0GA

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created March 8, 2011 at 2:05 AM
Updated July 30, 2011 at 2:11 PM
Resolved March 23, 2011 at 11:40 AM
Who's Looking?