Guest User

Untitled

a guest
Jun 17th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Dim s = From row In context.Table Where String.Compare(row.Name, "test", StringComparison.InvariantCultureIgnoreCase) = 0
  2.  
  3. String.Equals(row.Name, "test", StringComparison.OrdinalIgnoreCase)
  4.  
  5. result = entRepos.FindAllEntities()
  6. .Where(e => e.EntitySearchText.Contains(item));
  7.  
  8. if (caseSensitive)
  9. {
  10. result = result
  11. .Where(e => e.EntitySearchText.IndexOf(item, System.StringComparison.CurrentCulture) > 0);
  12. }
  13.  
  14. from user in Users
  15. where user.Email == "foo@bar.com"
  16. select user
  17.  
  18. SELECT [t0].[Email]
  19. FROM [User] AS [t0]
  20. WHERE [t0].[Email] = @p0
  21. -- note that "@p0" is defined as nvarchar(11)
  22. -- and is passed my value of "foo@bar.com"
Add Comment
Please, Sign In to add comment