public NPIInterceptor(DbConnectionContext dbConnectionContext)
 {
     this.dbConnectionContext = dbConnectionContext;
 }
 public int Execute(string sqlCommand, DapperParameters paras, DbConnectionContext context)
 {
     return(context.DbConnection.Execute(sqlCommand, paras, transaction: context.Transaction));
 }
Ejemplo n.º 3
0
 public NPIImplementer(DbConnectionContext dbConnectionContext)
 {
     this.dbConnectionContext = dbConnectionContext;
 }
 public IEnumerable <object> Select(Type entityType, string sqlCommand, DapperParameters paras, DbConnectionContext context)
 {
     return(context.DbConnection.Query(entityType, sqlCommand, paras, transaction: context.Transaction));
 }