Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 25, 2008 10:41 AM by csharp_starter
Member
15 Points
182 Posts
Jul 25, 2008 10:41 AM|LINK
I fairly try out Entity Framework, just by displaying data in winform dataGridView only, i got this error:
The underlying provider failed on Open.
how do i correctly display it?
try
{
dataGridView1.DataSource = comments;
}
csharp_start...
Member
15 Points
182 Posts
Entity Framework EntityType
Jul 25, 2008 10:41 AM|LINK
I fairly try out Entity Framework, just by displaying data in winform dataGridView only, i got this error:
The underlying provider failed on Open.
how do i correctly display it?
try
{
using (AdWorkEntities entities = new AdWorkEntities()){
var comments = from bp in entities.Customer.Include("Customer") where bp.CustomerID > 0select bp;dataGridView1.DataSource = comments;
}
}
catch (Exception ex){
throw ex;}
}