Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim s = From row In context.Table Where String.Compare(row.Name, "test", StringComparison.InvariantCultureIgnoreCase) = 0
- String.Equals(row.Name, "test", StringComparison.OrdinalIgnoreCase)
- result = entRepos.FindAllEntities()
- .Where(e => e.EntitySearchText.Contains(item));
- if (caseSensitive)
- {
- result = result
- .Where(e => e.EntitySearchText.IndexOf(item, System.StringComparison.CurrentCulture) > 0);
- }
- from user in Users
- where user.Email == "foo@bar.com"
- select user
- SELECT [t0].[Email]
- FROM [User] AS [t0]
- WHERE [t0].[Email] = @p0
- -- note that "@p0" is defined as nvarchar(11)
- -- and is passed my value of "foo@bar.com"
Add Comment
Please, Sign In to add comment