Open
Description
Hello,
I'm encountering an intermittent issue with Dapper. Occasionally, I receive the error message '@ParameterNames1 is not a parameter for procedure....' When I stop and restart the application using 'dotnet run', the error disappears, and everything works fine. However, after a while, the error reappears.
I've thoroughly checked the parameters I'm passing, and they are correct because the application runs without issues after restarting.
Could you please help me troubleshoot this issue?
Thank you.
P/s: Dapper 2.1.44 and .Net 8.0
``
using var con = new SqlConnection(_connectionString);
const string sql = "TestStore";
DynamicParameters para = new();
para.Add("@type", 1);
para.Add("@employeeID", employeeID);
var result = await con.QueryAsync<object>(sql, para, commandType: CommandType.StoredProcedure);
Metadata
Metadata
Assignees
Labels
No labels