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

    When deserialize(serialize(x)) != x

    • 1 Comments
    So here’s another random little piece of information that might help someone else out (or me 6 months from now)… As I’ve been rumbling about, lately I’ve been playing quite a bit with webservices and serialization—especially DataContract serialization...
  • compiler padawan

    Did you know that connection string builders will parse connection strings not just create them?

    • 1 Comments
    OK. So this one was new on me. Thanks to my colleague down the hall, Alazel Acheson, (being able to say that, by the way, has got to be one of the coolest things about working at Microsoft -- it's great to be surrounded by very smart people) I was able...
  • compiler padawan

    EF FAQ updated - v0.3

    • 3 Comments
    I've not spent near as much time on this as I would like, but this morning, I decided to do a quick update. New questions include: · 7.5 Does the EDM support guids? · 7.6 Does the EDM/EF support enums? · 10.3 Can you use a guid property as part...
  • compiler padawan

    Filtered association loading and re-creating an entity graph across a web service boundary...

    • 4 Comments
    Roger Jennings, in his recent post Controlling the Depth and Order of EntitySets for 1:Many Associations , makes a case for the importance of two features in an O/RM if you want to build data-centric web services using it: the ability to do a filtered...
  • compiler padawan

    So they're hard, but what if I need them...

    • 9 Comments
    In my last post I started a survey of problems with building data-centric web services. When we left our hero (you my intrepid entity framework programmer) things were looking pretty bleak. So far we’ve talked about the challenges. Now let’s talk about...
  • compiler padawan

    Why are data-centric web services so hard anyway?

    • 5 Comments
    Let’s say I’ve got a database and even some decent technology to help me to handle persistence between that database and my business objects which create a nice abstraction over the data and enforce validation. I’ve also got clients (maybe rich apps,...
  • compiler padawan

    DataContract Serialization, Entity Framework and "Known Types"

    • 3 Comments
    One of the challenges encountered when using DataContract serialization (the default for WCF web services) is support for polymorphic types. If you have a type hierarchy (eg. class A and class B which inherits from A) and each class in the hierarchy has...
  • compiler padawan

    Computing an Original Value Graph

    • 5 Comments
    In a previous post I shared some code which can be used to compute an original value version of an object using the information stored in ObjectStateManager, and in this post I gave some background about how the state manager and the relationship manager...
  • 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

    EF Beta 3 is finally available!

    • 1 Comments
    It has been a long time in coming (especially for those of you who have installed VS 2008 RTM and then been frustrated about the inability of beta 2 to work with it), but beta 3 of the Entity Framework and CTP 2 of the EF Designer are finally available...
  • compiler padawan

    December 1 and Winter Has Arrived in Redmond

    • 1 Comments
    While there are places nearby that do get a lot of snow, normally weather is pretty mild around here. This year, though, December brought with it snow for real (not to mention power outages and other adventures)... Of course now that the power outages...
  • compiler padawan

    Concepts Part II: Relationships

    • 6 Comments
    Recently I shared this post which has some code that demonstrates how to create an object matching the original state of an entity tracked in the ObjectStateManager. While this is useful, it’s more interesting to create the entire original value graph...
  • compiler padawan

    Me too...

    • 0 Comments
    OK. So I just read this post on Julie Lerman's blog, and my reaction is "me too, me too." What I mean to say is that I'd sure like to hear what things are causing people to dislike the EF or be afraid of it or whatever, because I'm in a position to...
  • compiler padawan

    If you don't know what Astoria is...

    • 1 Comments
    I highly recommend checking out Astoria. Pablo Castro, a major driving force behind Astoria, was on Dot Net Rocks recently, and the show provides a great introduction to Astoria. Of course, you might also want to take a look at the Astoria Team Blog ...
  • compiler padawan

    Creating an original value object from the separate values stored in the ObjectStateManager

    • 4 Comments
    Update October 21, 2009: The EF has progressed quite a bit since this original post, but the need for this capability still comes up.  Recently someone asked me how to do this kind of thing, and when I pointed them at this post, they had some trouble...
  • compiler padawan

    Question: Deep serialization of an object graph--how deep should it go?

    • 10 Comments
    So, I've been thinking lately about serializing/remoting object graphs. The entity framework currently serializes an entire object graph when binary serialization is used but only serializes one entity at a time in XML/DataContract scenarios. I'm working...
  • compiler padawan

    An Interesting Relationship Mapping Scenario

    • 10 Comments
    This week on the ADO.Net pre-release forum, someone brought up an interesting relationship mapping scenario in this thread . Essentially the scenario is this: They have a table which represents an entity, call it Foo, and along with the other columns...
  • compiler padawan

    First draft of an EF FAQ posted

    • 1 Comments
    One of the PMs on the team, Asad Khan, sent me a list of questions and answers which he culled from looking through a whole bunch of forum postings and blogs, and the content seemed like such a useful resource that I've been hacking on it for several...
  • compiler padawan

    Mapping Read-only Entities

    • 6 Comments
    I can't take credit for the description of how to do this, but a very useful example was recently posted to the forum, and I wanted to make sure more people saw this/it is easy to find in the future. Also, Julie Lerman was mentioning to me today that...
  • compiler padawan

    Off to Dev Connections in the morning

    • 1 Comments
    In case any of you are attending Dev Connections in Las Vegas this week, I'm planning on being there and would love to meet with you. Since I signed up too late to do an actual session, the powers that be have been kind enough to give me lots of time...
  • compiler padawan

    Two specific ways to take more control of your object model

    • 4 Comments
    There was an interesting discussion on the LINQ Project General forum today (scroll down toward the end where we start talking about what the EF can and cannot do), and there were a couple of key points I wanted to capture since we've had so many discussions...
  • compiler padawan

    EF Persistence Ignorance Recap

    • 3 Comments
    I had someone email me a question today about POCO, IPOCO, persistence ignorance and the EF, and I responded to them with a summary of sorts which I thought might be helpful to some other folks, so I'm going to post it here as well. There's not a change...
  • compiler padawan

    More about embedding metadata in resources...

    • 1 Comments
    Updated 2/16/2009: This issue was fixed before 3.5sp1 was released. So you should not have this problem if you are using the RTM bits. If you are seeing an exception when using an EF model with embedded resources in a unit test, then your problem might...
  • compiler padawan

    Concepts Part I: Getting an entity model up and running

    I've been thinking for a while about a series of blog posts I'd like to write explaining various Entity Framework concepts, particularly those related directly to writing code using the framework--by that I mean that I will concentrate more on using the...
  • compiler padawan

    See you at DevConnections in Las Vegas

    • 0 Comments
    I just got through signing up to attend DevConnections in Las Vegas in early November. Because of some things going on in my family situation, I normally do almost everything I can to avoid travel, but I've really been wanting the opportunity to get to...
Page 4 of 5 (122 items) 12345