c# - Dapper escape sp_tables procedure error -
am trying use dapper execute sp_tables
stored procedure , escape procedure name follows still getting error. var procname = @"sp_tables @table_type = ""'type', 'table'""";
var tables = con.query(procname, commandtype: commandtype.storedprocedure);
for future reference how solved it. var tables = con.query("sp_tables", new { table_type = @"""'type', 'table'""" }, commandtype: commandtype.storedprocedure);
Comments
Post a Comment