B
B
bigProblem2018-04-16 15:33:49
Oracle
bigProblem, 2018-04-16 15:33:49

How to pass a bool type parameter to a stored procedure using Dapper?

var parameters = new DynamicParameters();
parameters.Add("PARAM1", true, DbType.Boolean);
parameters.Add("PARAM2", null, DbType.Decimal, ParameterDirection.Output, 0);

DbConnection.Execute("PROC_BOOL", parameters, null, null, CommandType.StoredProcedure);

The procedure doesn't work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question