Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create New Enitity using Mere Mortal framework
Message
De
27/01/2009 07:52:54
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
26/01/2009 23:01:11
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Database:
Oracle
Application:
Desktop
Divers
Thread ID:
01377221
Message ID:
01377264
Vues:
20
>Could you please help me with this issue?
>
>I have a problem while inserting a new record in oracle database, but it works fine while inserting the same in SQL database.
>
>I have used business layer generator wizard to create Business objects, Entities, Dataaccess and Rules classes for the table named Client_Master
>
>But while trying to insert a record
>
>When I call
>
>ClientMasterEntity ODEntity = clientMaster.NewEntity();
>
>Which in turn calls the method CreateSelectCommand()
>
>public override System.Data.IDbCommand CreateSelectCommand()
>
> {
>
> System.Data.OracleClient.OracleCommand SelectCommand = (System.Data.OracleClient.OracleCommand)this.CreateCommand("WORLDKING.MMNET_CLIENT_MASTER_GEN.CLIENT_MASTERSelect");
>
> SelectCommand.CommandType = System.Data.CommandType.StoredProcedure;
>
> SelectCommand.Parameters.AddRange(new System.Data.OracleClient.OracleParameter[] {
>
>new System.Data.OracleClient.OracleParameter("P_RC", System.Data.OracleClient.OracleType.Cursor, 0, System.Data.ParameterDirection.Output, true, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null)});
>
> return SelectCommand;
>
> }
>
>And then calls CreateDataAdapter()
>
>public override System.Data.IDataAdapter CreateDataAdapter()
>
> {
>
> return this.DataAdapter;
>
> }
>
>Which raises an exception
>
>
>
>ORA-06550: line 1, column 7:
>
>PLS-00306: wrong number or types of arguments in call to 'CLIENT_MASTERSELECT'
>
>ORA-06550: line 1, column 7:
>
>PL/SQL: Statement ignored
>
>
>
>The business layer generator created the SQL as follows for CLIENT_MASTERSelect Procedure
>
>PROCEDURE CLIENT_MASTERSelect
>
>(
>
> P_RC OUT SYS_REFCURSOR
>
>)
>
>IS
>
>BEGIN
>
> OPEN P_RC FOR
>
> SELECT *
> FROM CLIENT_MASTER
>
> ;
>
>END CLIENT_MASTERSelect;
>
>
>
>Please let me know, if I am missing something here?
>
>
>
>Thanks & Kind Regards,
>
>Vidya

Vidya, did you try to execute the CLIENT_MASTERSelect procedure outside of MM and outside of VS? I would verify the stored procedure works and doesn't have an issue. If this turns out to be narrowed down to within MM you should re-post in the Mere Mortals section of the forum.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform