sebastienros / yessql

A .NET document database working on any RDBMS
MIT License
1.17k stars 195 forks source link

Add Format and apply rules #544

Closed MikeAlhayek closed 2 months ago

MikeAlhayek commented 2 months ago

This PR apply some cleanup.

Also adds char support for StartsWith, EndsWith, and Contains

sebastienros commented 2 months ago
Error Message:
   System.InvalidOperationException : Operation is not valid due to the current state of the object.
  Stack Trace:
     at System.Reflection.RuntimeMethodInfo.GetGenericMethodDefinition()

Probably due to the changes methods (string to char) that I mentioned. It can't find the method (the one accepting a char) and tried to get the generic form but fails

In DefaultQuery there is MethodMappings.TryGetValue(methodInfo.GetGenericMethodDefinition(), out action) which should check if it's a generic method before.

You still need to use the "string" based one