Messaggi totali: 26 Karma: 148 Sottoscritto: 16/03/2012 Località: 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
Messaggi totali: 329 Karma: 4194 Sottoscritto: 27/04/2010 Località: 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?
Messaggi totali: 26 Karma: 148 Sottoscritto: 16/03/2012 Località: 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.