Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4006948
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:34:30+00:00 2026-05-20T08:34:30+00:00

Hi i making filter with linq nhibernate all working good but when i try

  • 0

Hi i making filter with linq nhibernate all working good but when i try filter text with quote select return nothing…

qr.Where(o => o.Desc.ToLower().Equals("some text")); // working
qr.Where(o => o.Desc.ToLower().Equals("some \"text\""));
// not working because nhibernate bind parameter as  'some \"text\"' but not  'some "text"'

Its some nhibernate bug? Or exist some option witch force nhibernate replace ” with \” ?
Thanks for all

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T08:34:30+00:00Added an answer on May 20, 2026 at 8:34 am

    It works fine for me (just tried your exact code)

    What version of NH are you using?

    var foos = session.Query<Foo>()
                      .Where(o => o.Desc.ToLower().Equals("some \"text\""))
                      .ToList();
    

    Output:

    NHibernate:
        select
            foo0_.id as id0_,
            foo0_.[Desc] as Desc2_0_
        from
            Foo foo0_
        where
            lower(foo0_.[Desc])=@p0;
        @p0 = 'some "text"' [Type: String (4000)]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in Solr and making some filter quires. One of my filter
Hi making a live filter function, but having a problem to send checkbox values
Making a new site but something is happening to it in IE8. The social
Making a new site but something is happening to it in IE. I've purchased
We are working on improving our DAL which is written in LINQ that talks
I am making an action filter to do a check and see if a
I'm making a restaurant search in which users can filter the search based on
I'm making a little vote system, in wich one can vote an answer, but
I am making a median filter, the problem is manipulating pixes are only possible
I'm making a profanity filter (bad idea I know), and I'm trying to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.