DevConnections 2010 –Entity Framework Tutorial from Julie Lerman

DevExpress Data Blog
02 November 2010

Programming Entity FrameworkToday I had the great privilege of meeting Julie Lerman, the famed author of the book “Programming Entity Framework.” I had a couple of questions regarding entity framework so I figured I should ask the master. I had previously created a video/demo describing how to use entity framework as the data source for our reports but wanted to take it a bit further and see if we could do a master-detail type binding to the generated entity objects. Here is what I’ve learned:

1. I am not doing it exactly the right way.

2. Julie is the person to ask about it.

3. It’s a good thing she wrote a book.

She walked me through exactly whet we actually get with the model file. The she proceeded to help out with a Linq query that automatically prefetches the data required for an object based one-to-many.

Once I understood how to build the object graph, binding it to the report was simple:

Order Details Report bound to Entity Framework

The Field list contains the entire definition built up from the model file. The only thing left to do was create a detail report, set the data source and data member and start dragging over the desired fields.

Here is what Julie had to say:

Just watched @devexpress report display EF graph data in a report. That's graph as in related data. Haven't seen any other rpt tool do that

I have come to the conclusion that our reporting tools can bind to just about anything. I was happy that EF was one of those things. I am also grateful to Julie for spending a few minutes with me! She said she might pop by tomorrow. What questions should I ask?

As always, if there are any questions and/or comments feel free to get a hold of me.

Seth Juarez
Email: sethj@devexpress.com
Twitter: @SethJuarez

Showcase Your Apps on DevExpress.com

Highlight your business app and share your development experiences with the DevExpress community. To include your app in our upcoming App Showcase, please forward an application screenshot to clientservices@devexpress.com and tell us which DevExpress products you currently use within your organization.
Ronald Kunce
Ronald Kunce

Isn't there supposed to be an EF Tutorial using DevExpress tools here?  -- At least that is what I got from the title.

4 November 2010
Ronald Kunce
Ronald Kunce

Great Book BTW!!!

4 November 2010
Seth Juarez (DevExpress)
Seth Juarez (DevExpress)

@Ronald: Indeed there is an EF4 demo here: tv.devexpress.com

What I meant to say was that Julie gave *me* the tutorial. She has also graciously accepted to do a tutorial on video for all of us where she will walk through some of my mistakes in the video mentioned and add more understanding about EF4. Hopes this helps!

8 November 2010
Dennis 3
Dennis 3

Would it be possible to post more detail about how you populated the field list from he model file ?

9 November 2010
Karel Hájek
Karel Hájek

tutorial is here: tv.devexpress.com

17 February 2011

Please login or register to post comments.