aniskhan
Well-known member
i have a class with database operations
now i want a property that can return the data captured in the dataReader.
how to code this property so that it returns the data as arraylist or some thing else...
suggest a way to get the whole table...Thanx
now i want a property that can return the data captured in the dataReader.
how to code this property so that it returns the data as arraylist or some thing else...
VB.NET:
ReadOnly Property reader()
Get
Dim arr As new ArrayList
While dataReader.Read
arr.Add(dataReader.GetString(0))
End While
Return arr
End Get
End Property
suggest a way to get the whole table...Thanx