Support SqlMethods.Like() with escape character in LINQ

Description

System.Data.Linq.SqlClient.SqlMethods.Like() has a three argument overload that allows specifying an escape character. We should add support for that. We also need to add a matching overload in NHibernate.Linq.SqlMethods.

http://msdn.microsoft.com/en-us/library/vstudio/bb340785%28v=vs.100%29.aspx

Environment

None

is related to

Activity

Show:

Alex Zaytsev 
May 1, 2017 at 3:40 AM

Closing issues resolved in 4.1.0

Oskar Berggren 
July 31, 2016 at 4:57 PM

Fixed in 9be7d064bddcf64d37e73e6716162ef43f2a72a2 + 2.

Gunnar Liljas 
July 25, 2016 at 11:01 AM

Gunnar Liljas 
September 16, 2015 at 10:40 PM

I also think that the common methods StartsWith, EndsWith and Contains always should use escaping.

https://github.com/aspnet/EntityFramework/issues/474

If escaping is used in such a scenario, a character not used in the value must be automatically selected.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created October 19, 2014 at 6:21 PM
Updated May 1, 2017 at 3:40 AM
Resolved July 31, 2016 at 4:58 PM
Who's Looking?