I successfully run the following sql statement to find the ideal data
exec sp_executesql N"Select * FROM FC_Repair WHERE
F_RepairDepartmentId in
(
""ace7f0e7-f158-4587-920d-e76546885198"",""bf421a22-786b-40fd-8afc-c3e5e2364901""
) "
After is changed to parametric type, no data can be found. If you modify the following sql statement, please.
this is a sql statement generated after querying with dapper DynamicParameters dynamic parameters, so how about finding a better solution without changing the original sql format?
exec sp_executesql N"Select * FROM FC_Repair WHERE
F_RepairDepartmentId in
(
@F_RepairDepartmentId0
) ",
N"@F_RepairDepartmentId0 nvarchar(4000)",
@F_RepairDepartmentId0=
N"""ace7f0e7-f158-4587-920d-e76546885198"",""bf421a22-786b-40fd-8afc-c3e5e2364901"" "