Closed szymonjagiello86 closed 2 years ago
Hey! I fixed the problem. If there are difficulties, do not hesitate to start new issues
Thx for fix the issue. But I have a question: what about other primitives like short, float, byte? I have a little suggestion, maybe better to use Type.IsPrimitive? Something like this:
default:
if (@object.GetType().IsPrimitive)
{
return Convert.ToString(@object, CultureInfo.InvariantCulture)
}
return $"'{@object}'";
Hi! Thank you for quick support. $filter for double and long is now working fine.
What do you think of @Wadzio 's suggestion?
Hey! Good offer. I will be using it soon and will release a new version
If a member is of type double or long Filter puts its value into ''.
.Filter(e => e.L == 0.11) generates $filter=L eq '0,11' (where L is a double) .Filter(e => e.M == 1) generates $filter=M eq 1 (where M is an int)