Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

TableAdapter

$
0
0
Below is the code thats giving me an error   Dim adapter As New DataSetTableAdapters.SentEmailTableAdapter
Dim table As New DataSet.SentEmailDataTable
adapter.GetDataByDate(table, batchflag, startdate, enddate)
Value of type 'DataSet.SentEmailDataTable' cannot be converted to 'String'.

Too many arguments to 'Public Overridable Overloads Function GetDataByDate(BatchFlag As String, StartDate As Date?, EndDate As Date?) As DataSet.SentEmailDataTable'.	



But this code works with no error. As you can see I pass it a table and one parameter.

Dim adapter As New DataSetTableAdapters.EmployeesTableAdapter
Dim table As New DataSet.EmployeesDataTable
adapter.GetDataByRegion(table, state)


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>