0

I've to use an oracle function that returns an array of strings in a c# webapi. I don't realy have an idea on how to do this. I've started with the following code:

using (var cmd = _connection.CreateCommand()) 
{
    cmd.CommandType = CommandType.Text;
    //dual is temporary table where data is stored?!
    cmd.CommandText = "select Test_mp.f_loten(:p_item)  from dual";
    var p = cmd.Parameters;
    p.Add("p_item", 12942);
    _connection.Open();
    var rd= await cmd.ExecuteReaderAsync();
}
3

1 Answer 1

0

The problem was my return type which was a custom Oracle type.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.