I try to show the data from entity model and display them in datagridview1. i got this error: The underlying provider failed on Open. try { using ( AdWorkEntities entities = new AdWorkEntities ()) { Customer eph = ( from bp in entities.Customer.Include( "Customer" ).Include( "Customer.CustomerID" ) where bp.CustomerID > 0 select bp).First(); dataGridView1.DataSource = eph; } } catch (Exception ex) { throw ex; } }
Read More...