Code: Select all
var names = new List{"\"}
using (var entities = new DataEntities())
{
var names = entities.Names
.Where(o => names.Contains(o.Name))
.ToList()
}
Code: Select all
SELECT
"Extent1"."Id" AS "Id",
"Extent1"."Name" AS "Name"
FROM public."Names" AS "Extent1"
WHERE (("Extent1"."Name") = '\)
WARNING: nonstandard use of \ in a string literal at character 450
HINT: Use the escape string syntax for backslashes, e.g., E'\.
How to change the code so that PostgreSQL did not write this warning?
Thanks.