Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing mmBusinessObject
Message
De
04/10/2010 13:51:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01483023
Message ID:
01483874
Vues:
28
>>
>>You can use an overload on your calls in your business object that accepts a command type. Also you can set the default at each business object different if you wish. There is lots of flexibility in that.
>>Tim
>
>
>I could, but I have a *lot* of business objects and don't want to have to overload each instance. I'm wary of the side-effect of changing the default CommandType, but I reckon I could try that and see what breaks.
>
>Eric

Hi Eric,

sorry for the delayed response as I was away for a few days. The CommandType is a property and can be set at the application base business object level, the individual business object level or directly when you make a method call which supports that. There is no overloading. By using the overload method and setting the commandType then would not break anything as the method call includes either a stored procedure or a SQL pass through. Setting the property at the business object is just a convenience so you don't have to specify the command type at each method.
Tim
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform