T
T
Turtle_Onni2017-03-29 16:48:21
SQL
Turtle_Onni, 2017-03-29 16:48:21

Why can't it find the entry in the database?

Hello!
When querying the database, it does not find a record. There is a record in the database. The problem, I think, is in the characters that the search string contains.
Database query:

.....
var stringValueName = c.Name.Replace("\"", "");
db.Table.FirstOrDefault(s=> s.Name.Replace("\"", "").Contains(stringValueName));
.....

The stringValueName variable has the following value: Capacitor K53-68-25V-10uF+-20%"C"
There are quotes in the variable, I think that's the problem. But I don't know how to correct this error. Please help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2017-03-29
@d-stream

Latin-Cyrillic can't play dirty tricks?
And then in the above example, at least 3 letters have a 1: 1 style (K, B, C)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question