Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter arrays
Message
 
To
14/07/2003 15:48:20
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00809965
Message ID:
00810248
Views:
22
It a params so
this.FillDataSet(this.GetCurrentDataSet(), sqlExecComm, tableName, accountParam, encryptAccountParam, prodIDParam);
and
this.FillDataSet(this.GetCurrentDataSet(), sqlExecComm, tableName, new IDbDataParameter[] {accountParam, encryptAccountParam, prodIDParam});
are the same thing.


>David,
>
>This example shows 1 parameter, I am looking for several parameters in an array.
>
>Thanks
>
>Rex
>
>>This uses FillDataSet, but just replace that with GetDataSet
>>
>>
>>public virtual DataSet GetOrderByPK(int orderId, String tableName)
>>{
>>
>>DataSet dsOrders = this.GetCurrentDataSet();
>>
>>String sql = "SELECT Orders.* FROM  Orders WHERE uOrdID = @uOrdID ";
>>mmDataAccessBase dao = this.GetDataAccessObject();
>>IDbDataParameter param = dao.CreateParameter("@uOrdID", orderId);
>>
>>this.FillDataSet(dsOrders,sql,tableName,param);
>>return dsOrders;
>>}
>>
>>
>>>All,
>>>
>>>Can I get an example of the GetDataSet method of mmBusinessObject using an iDbDataParameter array?
>>>
>>>Thanks
>>>
>>>Rex
Previous
Reply
Map
View

Click here to load this message in the networking platform