compiler padawan

My adventures learning how to build compilers.

Blog - About

About compiler padawan.

Hiya!  My name is Danny Simmons, and I used to be a developer on the entity framework team, now I work on an incubation product involving ahead-of-time compilation of c#.

This blog is almost entirely about the Entity Framework.

  • compiler padawan

    Why use the Entity Framework?

    • 45 Comments
    There are a number of places where you can read an introduction to the Entity Framework, listen to a podcast about it, or watch a screen cast or video of an interview. Even with these various resources, though, there are so many different data access...
  • compiler padawan

    EF Merge Options and Compiled Queries

    • 14 Comments
    Recently there have been some questions about compiled queries and how they relate to merge options.  As I looked into it I realized that I didn’t fully understand the details of how it all worked, so I walked down the hall and spent a little while...
  • compiler padawan

    Deleting Foreign-Key Relationships in EF4

    • 13 Comments
    I try to keep up with blog posts on the net which involve the entity framework, and this afternoon I came across this post where someone had been experimenting with EF4 and encountered some cases where things didn’t behave as they expected.  I started...
  • compiler padawan

    How To: use your existing CSDL/MSL/SSDL files in the Entity Designer CTP2

    • 6 Comments
    Sanjay Nagamangalam who is the lead PM for the Entity Designer wrote up this great how-to for taking existing EF metadata files and bootstrapping them into the designer. Thanks Sanjay! How To: use your existing CSDL/MSL/SSDL files in the Entity Designer...
  • compiler padawan

    DP Advisory Council

    • 19 Comments
    As we wrap up VS 2008/.Net 3.5 SP1 and begin planning in earnest for the next release, we’ve been brainstorming various ways to improve our understanding of the problem space and to create feedback channels for our plans. I appreciate the feedback that...
  • compiler padawan

    Cascade Delete and 1-to-1 (or 1-to-0..1) Relationships

    • 5 Comments
    Here’s another episode in my ongoing mission to help folks be successful using the Entity Framework, as well as to learn more about how folks use the Entity Framework so that each release will be better than the last. Today’s task: Using cascade delete...
  • compiler padawan

    Simple WPF 2D Graphics: DrawingVisual

    • 3 Comments
    And now for something completely different…  Over the last little while I’ve been working on a side project just for fun which involves some simple 2D graphics using WPF.  Because I’m calculating the image I want to draw rather than it being...
  • compiler padawan

    AttachAsModified revisited

    • 1 Comments
    It seems like on a fairly regular basis these days I encounter a question or an issue about the EF to which the answer is “I know I wrote a blog post about that…”  Then when I go search my blog and find the post I discover that the post was written...
  • compiler padawan

    Using T4 Templates to generate EF classes

    • 9 Comments
    Spurred on both by the success of Damien Guard in using T4 to generate Linq to SQL code and of Jeff Reed from the EF team who built a prototype for using T4 to generate EF code, I recently hacked something up that makes it fairly easy to use T4 to generate...
  • compiler padawan

    Handling Concurrency: It’s a Matter of Trust

    • 1 Comments
    (with apologies to Billy Joel <grin>) Last summer I wrote a few articles for MSDN Magazine about N-Tier patterns with the Entity Framework ( Entity Framework- Anti-Patterns To Avoid In N-Tier Applications , Entity Framework- N-Tier Application Patterns...
  • compiler padawan

    EntityBag Part I – Goals

    • 17 Comments
    Well, I guess it’s high time that I get down to business of sharing and explaining the “general purpose container object” for transporting graphs of entities along with change tracking information over WCF web services which I mentioned in this previous...
  • compiler padawan

    AttachAsModified – a small step toward simplifying EF n-tier patterns

    • 9 Comments
    During this week at PDC I had a lot of great discussions with folks who are working with the EF—some of them just evaluating it and others deep into projects built on it. As it turns out much of the feedback that I heard came as no surprise. One of the...
  • compiler padawan

    EF CodeGen Events for Fun and Profit (aka How to add custom attributes to my generated classes)

    • 12 Comments
    Update 1/11/08: Between beta 2 and beta 3 there was a breaking change in the way events are fired during codegen. The metadata item that is being generated is no longer supplied as the "sender" of the event. Instead it comes in the TypeSource property...
  • compiler padawan

    EF Query Tuning

    • 4 Comments
    Continuing on the topic of application performance tuning, let’s turn our attention specifically to the EF and take a look at some of what’s going on under the covers with EF queries. Question #1: Where is the hot path? The first thing to think about...
  • compiler padawan

    Application Performance Tuning Philosophy

    • 1 Comments
    I’m in the process of embarking on some investigation and discussion with folks about performance tuning EF apps (in particular I’m going to dive into a critical area or two on my D3 project ), and the more I thought about this, the more convinced I became...
  • compiler padawan

    Context Lifetimes -- Dispose or Reuse?

    • 11 Comments
    Here's another topic which I believe is important to educate more folks on, but I just haven't had the time to carefully write something up. As I was answering a question on the forum today, I realized that the answer might be good to share a bit more...
  • compiler padawan

    Persistence Ignorance: OK, I think I get it now.

    • 9 Comments
    Let me apologize up front for how long it has taken me to get back to this topic . What I can say, though, is that in the intervening interval I have devoted real time to studying agile design principles and domain driven design. Initially I thought...
  • compiler padawan

    “Local” Queries

    • 10 Comments
    Quite some time ago I wrote a blog post about the fact that EF queries execute at the database rather than locally which means that if you add an object to the context or you modify an object already attached to the context, then a query won’t be based...
  • compiler padawan

    Generating Business Logic “Hooks” for EF4 Entities

    • 12 Comments
    Once again a question in the EF MSDN Forum has prompted a blog post where I can give a more complete answer.  If I understand things correctly, the person asking the question wanted a simple way to add business logic hooks to their entities which...
  • compiler padawan

    EntityBag – Wrap-up and Future Directions

    • 7 Comments
    Over the course of quite a few posts during the last several weeks I’ve shared source code that adds up to an implementation for EntityBag<T>. Piecing together a project from all those snippets, though, would be a pretty painful task, so I put the...
  • compiler padawan

    Simple Query Results Caching with EF4

    • 2 Comments
    Recently I spent some time working with a customer who was working on converting an existing application which had originally been written against an old 4GL database technology to .Net and EF4. The programming patterns used in the app were a lot different...
  • compiler padawan

    EF Extension Method Extravaganza Part I - ObjectStateEntry

    • 7 Comments
    So I’ve begun drinking the kool-aide. Extension methods are frighteningly addictive and don’t even get me started on LINQ to Objects. Now I can take a class which is missing some functionality that would make it just right for a particular problem and...
  • compiler padawan

    D3: Implementing the WCF Service

    • 0 Comments
    D3 release 0.1322 is now available.  The work that went into this release is all about building out the WCF service which D3 will use as the interface between our mid-tier and the client.  I encountered a grab bag of issues along the way, so...
  • compiler padawan

    Change Tracking Mechanisms

    • 7 Comments
    I continually find myself delaying posts on topics like this because I’d like to do a better job by the material, but given my harried schedule, it seems useful to at least get something out there whenever I can in the hope that it will be useful to someone...
  • compiler padawan

    EF Extension Methods Extravaganza part II – Relationship Entry & IRelatedEnd

    • 5 Comments
    In my last post I shared a few extension methods that I’ve found useful when working with the EF. Here are several more. First there is a set for working with ObjectStateEntry instances that track relationships. Before showing the code, though, let’s...
Page 1 of 5 (122 items) 12345