Hi,
I'm using Retrieval Stored Procedures with Adapter and found that the following does not work as expected:
var jobTypeData = new JobSummaryByJobTypeResultTypedView();
adapter.FetchTypedView(jobTypeData, RetrievalProcedures.GetQueryForJobSummaryByJobTypeResultTypedView(startDate, endDate));
I was expecting this to use the database from the adapter but after some SQL tracing found it is using the original database from which the LLBLGen project was generated. I would have thought that the instantiated adapter was doing the work and that the sproc would be executed in that database.
I had to work around with the following:
var jobTypeData = new JobSummaryByJobTypeResultTypedView();
var dataTable = RetrievalProcedures.UspJobSummaryByJobType(startDate, endDate, adapter);
jobTypeData.Load(dataTable.CreateDataReader());