Re: DataSet from Stored Procedure
- From: "Alec MacLean" <alec.maclean@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 18 Jan 2008 11:17:14 -0000
Hi M,
I successfully use the EL in various versions now (old and new). Gregory is
right to make a judgment on the compexity of adding it to everything - some
apps don't really benefit from it - but I've become comfortable with it and
find many of the routines very useful in keeping my code easier to read and
maintain.
I think you're issue has been related to mixing up usage of the commands a
bit.
Try this:
Dim db As Database = DatabaseFactory.CreateDatabase("VideoClub")
Dim ds As DataSet = New DataSet
Dim dbc As DBCommandWrapper
dim myTables() as string
'Add your table names for your various lists to the string array
dbc = db.GetStoredProcCommand("udpLists")
db.LoadDataSet(dbc, ds, myTables)
Return ds
The third parameter of LoadDataSet can be either one table name, or a list
of table names supplied as a string array.
Hope that helps.
Alec
.
- Prev by Date: Re: Writing a Table with Many Fields
- Next by Date: What woudl be the better design (migth be double post)
- Previous by thread: Re: DataSet from Stored Procedure
- Next by thread: Writing a Table with Many Fields
- Index(es):
Relevant Pages
|