Skip to content

Unable to call ToString even when AllowEqualsAndToStringMethodsOnObject is true #924

@ghost

Description

Hello,
In my application I need to filter for items that has numerical properties starting with certain numbers. For example find all items that have frequency starting with 12 should return items with 12, 12256, 12.89749 ect. However since version 1.6 I am getting error on ToString method. I tried to se AllowEqualsAndToStringMethodsOnObject to true but that also didn't help.

Image

My query is

np(CK.Frequency.ToString(), "").StartsWith("5", StringComparison.OrdinalIgnoreCase)

The property that I want to filter has type of nullable double

Image

Can you please help me?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions