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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -