var query = _customerRepository.Table

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 anni tempo fa
hi all,

I am trying to retrieve all customer table using var query = _customerRepository.Table;

in my local database it will retrieve all customers, but in my live database it does not work. What is the missing here.

same database structure in both local and live.

Thanks
11 anni tempo fa
some obvious things:
1. var query = _customerRepository.Table only returns an IQueryable. call ToList() will get the actual data
2. Do you have customers in your live database?
11 anni tempo fa
yah, there are customers in live database. when i debug it for the query there aren't any data. But in local db it has.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.