We tried to call the procedure using devart Entity Developer.
Calling the procedure now works (after some minor changes in xxx.Designer.cs). But neither the input nor the output parameters are delivered.
This is the code:
Code: Select all
public void Getnextprimarykey(string SEQUENCENAME, string NEXTID)
{
this.Connection.Open();
System.Data.EntityClient.EntityCommand command = new System.Data.EntityClient.EntityCommand();
command.CommandType = System.Data.CommandType.StoredProcedure;
[color=blue] command.CommandText = @"DataSourceModelEntities.Getnextprimarykey";[/color]
command.Connection = (System.Data.EntityClient.EntityConnection)this.Connection;
global::System.Data.EntityClient.EntityParameter SEQUENCENAMEParameter = new global::System.Data.EntityClient.EntityParameter("SEQUENCENAME", System.Data.DbType.String);
if (SEQUENCENAME != null)
SEQUENCENAMEParameter.Value = SEQUENCENAME;
command.Parameters.Add(SEQUENCENAMEParameter);
global::System.Data.EntityClient.EntityParameter NEXTIDParameter = new global::System.Data.EntityClient.EntityParameter("NEXTID", System.Data.DbType.String);
[color=blue] SEQUENCENAMEParameter.Direction = System.Data.ParameterDirection.Output;[/color]
command.Parameters.Add(NEXTIDParameter);
command.ExecuteNonQuery();
}
The procedure is called (we checked this within oracle), but no parameters are delivered.
Do we have to use different types for parameters or do we have to call the procedure in a different way?