tmsmith / Dapper-Extensions

Dapper Extensions is a small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs. For more advanced querying scenarios, Dapper Extensions provides a predicate system. The goal of this library is to keep your POCOs pure by not requiring any attributes or base class inheritance.
1.79k stars 586 forks source link

contains does not work #316

Open young717 opened 1 year ago

young717 commented 1 year ago

In my case, the api definite like this: Task DeleteArticleById(params string[] articleId) and the query expression like this : predicate.And(s => articleIds.Contains(s.Id)); It does not work, it does not transform the contains function

kpanpfizer commented 1 year ago

Try Predicates.Field(f => f.NodeId, Operator.Eq, articleIds)