Specifying a column with a Unicode name in the dynamic where (Entity Framework) section

When I set where where EntityDataSource, which contains the name of the unicode column, this exception occurs:

The simple identifier 'عنوان_قرارداد' should contain basic Latin characters only. To use UNICODE characters, use a shielded identifier. Near line 6, column 4.

and this is part of my code:

GridDataSource.Where = "it.عنوان_قرارداد == \"something\"";

I tried using the escaped identifier, but this new exception occurred:

Request syntax is invalid., Row 6, column 4

Is there any solution to this problem?

+3
source share
1 answer

Finally, I found a solution:

GridDataSource.Where = "it.[عنوان_قرارداد] == \"something\"";
+2
source

Source: https://habr.com/ru/post/1766562/


All Articles