-
Notifications
You must be signed in to change notification settings - Fork 24
Relational Operators
Alan Hatter edited this page Jun 13, 2020
·
1 revision
context.Where(x => x.CommonName == "John Doe");
//filter: (cn=John Doe)
context.Where(x => x.CommonName != "John Doe");
//filter: (!(cn=John Doe))
context.Where(x => x.EmployeeId >= 2);
//filter: (employeeid>=2)
context.Where(x => x.EmployeeId > 2);
//filter: (&(employeeid>=2)(!(employeedid=2)))
context.Where(x => x.EmployeeId <= 2);
//filter: (employeeid<=2)
context.Where(x => x.EmployeeId < 2);
//filter: (&(employeeid<=2)(!(employeedid=2)))
context.Where(x => !(x.EmployeeId == 2));
//filter: (!(employeedid=2))
context.Where(x => x.IsActive);
//filter: (isactive=TRUE)
context.Where(x => !x.IsActive);
//filter: (isactive=FALSE)