enisn / AutoFilterer

AutoFilterer is a mini filtering framework library for dotnet. The main purpose of the library is to generate LINQ expressions for Entities over DTOs automatically. The first aim is to be compatible with Open API 3.0 Specifications
MIT License
458 stars 37 forks source link

Adding IsNull, IsNotNull, IsEmpty, IsNotEmpty filters. #48

Closed mehmetuken closed 2 years ago

enisn commented 2 years ago

Also, some of the tests are failing currently

Can you please update the following test according to the new logic? https://github.com/enisn/AutoFilterer/blob/e47ce554a73056b8d5dfe1720d07092e6834bc18/tests/AutoFilterer.Tests/Types/OperatorQueryTests.cs#L36-L56

mehmetuken commented 2 years ago

Also, some of the tests are failing currently

Not-Nullable types getting error. Adding the type is nullable check binary expressions.

enisn commented 2 years ago

I've just referenced the issue which is found by CodeFactor https://github.com/enisn/AutoFilterer/issues/49

It's ok to merge now. I'll refactor it later. Using if chains is not a good solution, but it's ok for now.