Nombre de messages: 26 Karma: 148 Inscrit: 16/03/2012 Localisation: 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
Nombre de messages: 329 Karma: 4194 Inscrit: 27/04/2010 Localisation: 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?
Nombre de messages: 26 Karma: 148 Inscrit: 16/03/2012 Localisation: 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.