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

adding bit flag check ability #293

Closed rikard-acst closed 2 years ago

rikard-acst commented 2 years ago

For instance: running queries to determine if 33 has the 32 bit set (100000 & 100001) isn't possible currently with dapper extensions. This addition should allow that for all the defined dialects

For Oracle:

BITAND(FlagField, 32) = 32

everyone else

FlagField&32 = 32
rikard-acst commented 2 years ago

@tmsmith Can I get approval to run this workflow, or is this PR denied?