Action: Update content to show how to do this with EF Designer (walkthrough is Code First only)
using EF5 VS2010 or VS2012 , .NET 4.0 Or 4.5 , here are the simple steps to create the problem :
1. create a model with master/child 2 tables with FKey like Order/Order Detail , generate code as dbcontext
2. create new datasource using Object and add the master entity , Order .
3. drag an attribute (column) from Order entity into a text box in a windows form creates a binding source, no problem so far
4. drag the entity child OrderDetail into a GridView creates only 2 columns in the grid Count and IsReadOnly , this is wrong , it should create all the columns in the child entity , same as EF4
Thanks
using EF5 VS2010 or VS2012 , .NET 4.0 Or 4.5 , here are the simple steps to create the problem :
1. create a model with master/child 2 tables with FKey like Order/Order Detail , generate code as dbcontext
2. create new datasource using Object and add the master entity , Order .
3. drag an attribute (column) from Order entity into a text box in a windows form creates a binding source, no problem so far
4. drag the entity child OrderDetail into a GridView creates only 2 columns in the grid Count and IsReadOnly , this is wrong , it should create all the columns in the child entity , same as EF4
Thanks