WPF & Entity Framework 4 – Tales from the Trenches

I recently presented “WPF & RF4 – Tales from the Trenches” at the Cleveland .NET SIG. This presentation reviews tips, tricks, and lessons learned from building real world apps with Windows Presentation Foundation 4.0 and Entity Framework 4.0. Whether you’re doing desktop, Silverlight, or web development, the EF T4 template tweaks, MVVM usage, Undo/Redo implementation, and Reactive programming tips reviewed in this presentation should come in handy.

The Photo Tagger sample application includes implementations of these topics and issues. I’d highly recommend pulling this down and taking a look.

image

Downloads

Entity Framework Topics

  • Self Tracking Entities overview
    • Origins: WCF Services
    • Getting the templates
    • Using STE for “Models”
    • Using STE on the desktop
  • Repositories 
    • Enabling Change Tracking
    • Loading from the DB
    • Saving Changes
    • Deletes
  • Customized STE template
    • Partial Classes / Methods for adding custom logic
    • Delayed Initialization Scope for ISupportInitialize
    • Undo / Redo hooks

WPF / MVVM Topics

  • INotifyPropertyChanged
  • Undo / Redo
  • MVVM
  • Keyboard Focus
    • You could be loosing data
    • Fixing this with the “CommitBindingsBehavior”
  • Reactive Programming 
  • Threading
    • Recommendations and Pitfalls
    • SynchronizedContextCollection implementation 

 

If you have any feedback, please drop a comment or send me an email!

Cheers!

One thought on “WPF & Entity Framework 4 – Tales from the Trenches

Add yours

  1. Hi Chris,I don’t have an update available at this time. I’ll be happy to add it to my list, but I’m not sure how quickly I can get it updated due to my current workload.Thanks,Nathan

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: