Total Posts:
26
Karma:
148
Joined:
3/16/2012
Location:
Sri Lanka
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
Total Posts:
329
Karma:
4194
Joined:
4/27/2010
Location:
Netherlands
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?
Total Posts:
26
Karma:
148
Joined:
3/16/2012
Location:
Sri Lanka
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.