hi
how can use DataTable to call store for store procedure
not like #1645
public static IEnumerable<DataTable> spReportpAGEvISITcOUNT(this db dataConnection)
{
return dataConnection.QueryProc<DataTable>("spName");
}
It ieasy, if you need IQueryable, you do not have to use QueryProc.
return dataConnection.FromSql(“spName”);
i don't need IQueryable
just i need return System.Data.DataTable
because columns is dynamic
Everything can be found in StackOverflow and analyzing linq2db extension methods:
var dataTable = new DataTable();
using (var reader = dataConnection.ExecuteReader("spName", CommandType.StoredProcedure))
{
dataTable.Load(reader.Reader);
}
Hi @sdanyliv
sorry for a lot question
and tanxxxxxxxxxxxxxxxx
Most helpful comment
Everything can be found in StackOverflow and analyzing linq2db extension methods: