< 1 min read
var predicate = PredicateBuilder.True(); var q = db.Profiles.Where(t => !t.aspnet_Users.aspnet_Membership.IsLockedOut); foreach (string keyword in pars) { string temp = keyword; predicate = predicate.And(t => t.FirstName.StartsWith(temp) || t.LastName.StartsWith(temp)); }
Was this post helpful?
Let me know if you liked the post. It helps me create relevant content.
Comments are off this post