You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to add conditional filters including OR login on my data:
suppose that we have following entity:
public class User
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
I want to have the ability to write an expression which acts like this: context.Users.Where(P => P.FirstName.StartsWith("Reza") || P.LastName.Contains("No").ToList();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I want to add conditional filters including OR login on my data:
suppose that we have following entity:
I want to have the ability to write an expression which acts like this:
context.Users.Where(P => P.FirstName.StartsWith("Reza") || P.LastName.Contains("No").ToList();
I didn't found the answer for such a situation.
Beta Was this translation helpful? Give feedback.
All reactions