Guest User

Untitled

a guest
Jun 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class Person
  2. {
  3. public int Id { get; set; }
  4. [Encrypted]
  5. public string Name { get; set; }
  6. }
  7.  
  8. public class EncryptedAttribute: Attribute { }
  9.  
  10. string searchTerm = "Sean";
  11. // I want to search like this
  12. var results = ctx.Persons.where(p => p.Name == searchTerm).ToList();
  13. //and not like this
  14. // var results = ctx.Persons.where(p => p.Name == EncryptMethod(searchTerm)).ToList();
Add Comment
Please, Sign In to add comment