Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Test Bench Error
Message
 
À
22/08/2007 00:53:54
Dave Porter
Medical Systematics, Inc.
Merced, Californie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01249506
Message ID:
01250041
Vues:
20
Dave,

>When I try to invoke a method on an object on the object test bench I get:
>"
>An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll
>
>Additional information: Incorrect syntax near 'ClaimSelectByPK'.
>"
>I don't see any Incorrect syntax anywhere near ClaimSelectByPk.
>The solution builds without errors.
>The stored procedure executes fine from within M$ SQL server...

Check your business object, and if there is a line of code in the constructor that sets the DefaultCommandType property, remove it. Next time you run the the Business Layer Generator, make sure you uncheck the option on the second page of the wizard to "Set DefaultCommandType".

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform