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 7967625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:57:14+00:00 2026-06-04T06:57:14+00:00

I am using Windows Azure Storage Tables, and want to query for an object.

  • 0

I am using Windows Azure Storage Tables, and want to query for an object. The user inputs a string, which I look for in the database as such:

var myKey = "SomeCaseSensitiveKeyInputByTheUser";

var someObject = (from o in dataContext.Objects
    where o.SomeString.Equals(myKey)
    select o).FirstOrDefault();

However, for some reason, all string comparisons appear to be case insensitive (both == and string.Equals()). However, I need to match the exact casing of the user input string.

How can I do this in my LINQ query?

  • 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-06-04T06:57:14+00:00Added an answer on June 4, 2026 at 6:57 am

    Using == is the same as .Equals(..), as it just calls that method.
    You can force to use a case sensitive comparison using an overload of Equal() passing a string.comparison enum

    CurrentCulture                   Compare strings using culture-sensitive sort rules and the current culture.
    CurrentCultureIgnoreCase         Compare strings using culture-sensitive sort rules, the current culture, and ignoring the case of the strings being compared.
    InvariantCulture                 Compare strings using culture-sensitive sort rules and the invariant culture.
    InvariantCultureIgnoreCase       Compare strings using culture-sensitive sort rules, the invariant culture, and ignoring the case of the strings being compared.
    Ordinal                          Compare strings using ordinal sort rules.
    OrdinalIgnoreCase                Compare strings using ordinal sort rules and ignoring the case of the strings being compared.
    

    more info at:

    http://msdn.microsoft.com/en-us/library/system.stringcomparison.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Windows Azure Table Storage. I am wondering, if I could use
I am working with Windows Azure and am just using the Blob Storage. I
trying to migrate my existing asp.net website which is using mysql to Windows Azure
Due to certain constraints, such as using Windows Azure, I am limited to using
I am working a sample application using Windows Azure table storage. I will try
I am using Windows Azure toolkit for Windows Phone to authorize user with the
I'm using Windows Azure Table Storage to store millions of entities, however I'm trying
I am building a server back-end for a mobile social network using Windows Azure.
Using Windows form (Vb.net & Datagridview) Checkbox is using in datagridview row. I want
Iam using windows forms. How can I query all child controls of a Form

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.