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
Comments: Hello divega, thank you for your reply, im trying to change the T4 template as you said but with no success fo far , will try more but if you can supply any small sample for just one navigation property pointing to only 2 columns entity , would be a great help. Thank you.
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
Comments: Hello divega, thank you for your reply, im trying to change the T4 template as you said but with no success fo far , will try more but if you can supply any small sample for just one navigation property pointing to only 2 columns entity , would be a great help. Thank you.