Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

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

$
0
0
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


Viewing all articles
Browse latest Browse all 10318

Trending Articles



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