Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SqlCE - CommandTimeout
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01231602
Message ID:
01231753
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
Mat,

>I have a subclass of mmDataAccessBase for SqlCE (Compact Edition). I am running into an error when I call the ExecScalar command since SqlCE does not support the CommandTimeout property. Trying to set this property in the base ExecScalar method throws an exception. What is the best way to get around this? Do I need to override the ExecScalar method in my subclass?

It looks like the SqlCE command object supports the CommandTimeout property, it's just that it's always set to zero. I recommend setting the CommandTimeout variable in your SqlCe class to zero (you can set it in the constructor) and see if that helps.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform