Question : Updating a Data Set that has been returned from a Function or DLL

I have writted a DLL that returns dataset to my program to display data on dataview grids, and I have been trying to figure out how I can pass the returned dataset back to a function or dll if it needs updating.

Here is the code that gets the data requested and passed to the program as a dataset.

Now if I want an end user to modify or update can I pass this dataset back the DLL for updating?  I know how to do this inside the program using a dataadapter or plain old SQL but I would like to use this dll for all my trips to the database.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
Public Shared Function GetData(ByVal ConnectionStr As String, ByVal SQL As String, ByVal TableName As String)

        Dim connection As New SqlClient.SqlConnection
        Dim dsSQL As New DataSet(TableName)
        connection.ConnectionString = ConnectionStr

        Try
            connection.Open()
            Dim daSQL As New SqlClient.SqlDataAdapter(SQL,connection)
            daSQL.FillSchema(dsSQL, SchemaType.Source, TableName)
            daSQL.MissingSchemaAction = MissingSchemaAction.AddWithKey
            daSQL.Fill(dsSQL, TableName)

        Catch ex As Exception
            MsgBox(ex.ToString)
        Finally
            connection.Close()

        End Try

        Return dsSQL
    End Function

Answer : Updating a Data Set that has been returned from a Function or DLL

Try this:

rpm -qa --queryformat '%{DESCRIPTION}\n' bash
Random Solutions  
 
programming4us programming4us