Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IDbCommand IDbDataParameter logistics
Message
De
02/01/2004 20:44:37
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00863398
Message ID:
00863592
Vues:
12
>>That seems like a real missing feature since all providers can in fact retrun a parmaeters through their Add methods. But it's a different collection for each and those collections do not inherit from IDataParameterCollection. It's a design flaw that breaks the whole 'Interface' based access mechanism.<

When I was playing with this this morning, it did seem odd to me that there was an IDbDataParameter that allowed you to add only a Parameter object, but didn't have any way of creating a generic Parameter object.

>>I moved that method into my data access layer now and from there I can call CreateParameter which returns me an IDbDataParameter from the current provider. It works but is not how I wanted to do this <g>...<

Well, of course I don't know exactly how you are doing things, but it seems to me that anything to do with parameters belongs in the DataAccess layer anyway. <g> So what were you trying to do with Parameters in the BizObject? I'm just curious about your methodology.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform