How to excute store proceduced via odbc? #1045
Unanswered
minhdanghuu
asked this question in
Q&A
Replies: 1 comment
-
DbParameter p2 = null;
fsql.Ado.CommandFluent("dbo.GetICMaxNum")
.CommandType(CommandType.StoredProcedure)
.CommandTimeout(60)
.WithParameter("TableName", "tb1")
.WithParameter("FInterID", null, p =>
{
p2 = p; //Output Parameter
p.DbType = DbType.Int32;
p.Direction = ParameterDirection.Output;
})
.ExecuteNonQuery(); //.Query<T>() 或者 .ExecuteDataTable() 或者 ...
Console.WriteLine(p2.Value); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a problem when excute store proceduced with parameter via odbc. Some have had mention in #571 , but i can't figure out how to make it work in store procedured. Can someone provided me an worked example ?
Beta Was this translation helpful? Give feedback.
All reactions