Posts
  • Meta-Me

    Tip 14 - How to cache Entity Framework Reference Data

    • 13 Comments
    Scenario: In order to make applications perform it makes a lot of sense to cache commonly used reference data. Good examples of reference data include things like States, Countries, Departments etc. Generally you want to have this data readily at hand...
  • Meta-Me

    Tip 12 - How to choose an Inheritance Strategy

    • 13 Comments
    What strategies does the Entity Framework support? The Entity Framework supports 3 primary inheritance strategies: Table Per Hierarchy (TPH): In TPH, all data for a type hierarchy is stored in one table, and there is a discriminator column that is used...
  • Meta-Me

    Tip 13 - How to Attach an Entity the easy way

    • 13 Comments
    The Problem: In some of earlier tips we talked about using Attach to load things into the ObjectContext in the unchanged state without wearing the cost of doing a query. Attach is the weapon of choice if performance is your goal. Unfortunately our APIs...
  • Meta-Me

    Tip 10 - How to understand Entity Framework jargon

    • 4 Comments
    The Entity Framework is pretty big, so when the Entity Framework team talks about things internally we tend to use jargon to increase communication 'bandwidth'. Unfortunately sometimes we let this Jargon slip into our APIs and communication. Now...
  • Meta-Me

    Tip 15 - How to avoid loading unnecessary Properties

    • 4 Comments
    UPDATE: Made a couple of important corrections re-which Original Values are required. Problem: Imagine if you query blog posts: var myPosts = from post in ctx.Posts orderby post.Created descending select post; Just so you can output the post...
  • Meta-Me

    Tip 11 – How to avoid Relationship Span

    • 5 Comments
    Background and Motivation: In my last post on EF Jargon I introduced the concept of Relationship Span. If you remember Relationship Span is basically responsible for compensating for the lack of Foreign Key properties* in your Entity. Relationship...
  • Meta-Me

    Interesting reads

    • 3 Comments
    Over the weekend in between run throughs that I did prepping for a webcast, I did some catch-up blog reading. Lots of interesting stuff. Recording and sharing here for posterity: Entity Framework Simon Segal has a interesting post on Entity Framework...
  • Meta-Me

    An analogy: Good UIs and Fluent APIs

    • 5 Comments
    Background A while back I was writing a web app to try the Entity Framework and MVC together. I knew the pain points would probably be around Foreign Keys, or at least the lack of them in .NET 3.5 SP1 (FKs are now available by default in .NET 4...
  • Meta-Me

    Corrected Tip 15 - How to avoid loading unnecessary properties

    • 1 Comments
    I've made a few important corrections to Tip 15 . I've corrected the bit that said the UPDATE SQL includes original values of Updated Properties in the WHERE clause. At the time I was consciously attempting to simplify things a little, but as Tanveer...
Page 1 of 1 (9 items)