Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Person
- {
- public int Id { get; set; }
- [Encrypted]
- public string Name { get; set; }
- }
- public class EncryptedAttribute: Attribute { }
- string searchTerm = "Sean";
- // I want to search like this
- var results = ctx.Persons.where(p => p.Name == searchTerm).ToList();
- //and not like this
- // var results = ctx.Persons.where(p => p.Name == EncryptMethod(searchTerm)).ToList();
Add Comment
Please, Sign In to add comment