I want to check whether a Tag (Case-Sensitive) exists in SQL Server 2005 table using LINQtoSQL. Let's say if a tag 'BEYONCE' exists in tags, then I want that I can add 'beyonce' or 'BeYOnce' but not 'BEYONCE' again. Here is the LINQ query i have written:
From t In Context.Tags
Where String.Equals(t.Tag, myTag, StringComparison.Ordinal) = True
But it says Method 'Boolean Equals(System.String, System.String, System.StringComparison)' has no supported translation to SQL. What's the other way to find case sensitive tag?