Quantcast
Viewing all articles
Browse latest Browse all 10318

Commented Issue: EF5 with dbcontext: Dragging a child entity from project data sources into a gridview returns only 2 columns [639]

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: forgot to say this sample can be shared helping many winforms developers facing same issue with data binding and EF5

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>