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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

contains does not work

young717 opened this issue · comments

commented

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

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