IharYakimush / comminity-data-odata-linq

Use OData filter text query in linq expresson for any IQuerable without ASP.NET dependency. Support netstandard2.0
Other
42 stars 16 forks source link

Add DateOnly and TimeOnly support #43

Open kvpt opened 2 years ago

kvpt commented 2 years ago

Hi,

I recently migrated a project to .NET6 and started to use DateOnly type introduced with it. This caused an exception when used with this library because these new types (DateOnly and TimeOnly) are unknown. So I tried to add support for them to the library, I tried to reproduce the same logic as the others types but I'm not sure if all the changes are correct, particularly the CreateBinaryExpression part.

These changes fix the exception and works fines in my project but I only use simple case.

Do these changes look good to you ?

IharYakimush commented 2 years ago

Hi @kvpt , please add unit tests