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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -