system.data.objects dev guy becomes a compiler padawan

More than 5 years ago I joined what became the Entity Framework team and started an awesome adventure which taught me a lot and has given me many memories which I will treasure: Everything from a room of MVPs yelling at me (so much that one of them later apologized on his blog) and a…

16

EF FAQ Relocation and Overhaul

It has been quite some time since I last updated the EF Frequently Asked Questions which makes them dramatically less useful to everyone.  At its core, I think the reason for this delay is not just that I have been busy doing other things but rather that the way the FAQ was setup and posted…

3

EF Query Tuning

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 in broad terms is where is the time really going. …

4

D3: Implementing the WCF Service

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 here’s a list of tips & tricks as well as…


EntityRoots – An EF Extensibility Exercise

A little while back I was working on a project for one of the other teams in the Data and Modeling Group where we were building an EDM which was not huge but nevertheless had a number of entity sets, and I was trying various strategies to make the model more usable and easier to…

3

Generating Business Logic “Hooks” for EF4 Entities

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 would be called whenever they did SaveChanges.  In EF4 we…

12

D3: Test Fixture & Using a Fake Context While Testing a WCF Service

First off, I’ll point out that D3 Release 0.1012 is now available on code gallery.  In addition to a foray into a custom, attribute-based text parser (which I’ll not discuss in detail here unless someone really wants me to since it has little bearing on the EF), this release includes the initial outline of the…


D3: Testing, TFS and a Teenager

It has been a couple months since I’ve put up a new release of D3, but that doesn’t mean I haven’t been working on it.  Release 0.0814 is now available.  This release is designed to work with VS2010 RC (available starting last week), but it should also work just fine or with very minimal changes…

4

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

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 with 1-to-1 relationships. The problem I got an email from a…

5

Simple Query Results Caching with EF4

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 than what we would normally expect from an app written from scratch…

2