Dapper.How can the query be taken from external source -


in dapper orm when write sql query can possible take query external source xml file.

query or sp dapper run time parameter, can fetched of relevant source, xml files, config file, database or other relevant source, let's assume config file

string sql = configurationmanager.appsettings["querykey"].tostring()

use sql dapper execution

conn.query<t>(sql) 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -