compiler padawan

My adventures learning how to build compilers.

Browse by Tags

Tagged Content List
  • Blog Post: 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 random...
  • Blog Post: 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...
  • Blog Post: Handling Concurrency: It’s a Matter of Trust

    (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 and Building N-Tier Apps with EF4 ). ...
  • Blog Post: It’s time to rip up EntityBag and throw it away

    A couple of years ago when the overall shape of what we would ship in the first release of the entity framework became apparent, I realized that one of the biggest issues users of that release would fight with was creating N-tier applications.  So I started a project to explore the space by creating...
  • Blog Post: Links: EF4 Podcast, N-Tier Anti-Patterns, and some thoughts about DDD

    Here are a few more resources I hope you will find useful: Recently I had a conversation about EF4 with Carl and Richard of .Net Rocks, and it went up on their site today.  Have a listen at http://www.dotnetrocks.com/default.aspx?showNum=451 .  In addition, I have an article about design/architecture...
  • Blog Post: Code Sample from my Applied Entity Framework talk at TechEd 2009 now available

    This week I gave a talk at TechEd focusing on architectural considerations as well as some useful tips for creating n-tier applications with the Entity Framework v3.5SP1.  The code from the simple sample application is now available at http://code.msdn.microsoft.com/dtl401sample/ .  It includes...
  • Blog Post: Building N-Tier applications with the EF – The Basics

    Today I was looking at a post in the forums where someone asked a very natural and common question about the EF that I end up answering pretty frequently.  So I decided to put my answer here on my blog to make it easier to refer back to the answer in the future.  The question was essentially...
  • Blog Post: Part 2 of dnrTV about the Entity Framework now up

    Check it out at http://www.dnrtv.com/default.aspx?showNum=118 . In this episdoe we build on the first EF dnrTV by looking at using the EF in a variety of scenarios including ASP.Net web pages with the Entity Data Source Control and with ASP.Net Dynamic Data and web services with ADO.Net Data Services...
  • Blog Post: EntityBag – Wrap-up and Future Directions

    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 whole thing together in a zip file and posted it...
  • Blog Post: EntityBag Part VI – RelationshipEntry

    Here’s the last piece in the EntityBag saga. RelationshipEntry is a small, DataContract serializeable class which wraps an ObjectStateEntry that represents a pair of related entities. It contains the name of the relationship, the state of the entry, and the key or index of the entity for each end organized...
  • Blog Post: EntityBag Part V – ContextSnapshot Constructing and Applying

    For this post, I’m going to set a new personal record for least prose/most code. We’re going to look at the core of ContextSnapshot, and the code includes extensive comments so we’ll mostly let it speak for itself. Constructors We have two different constructors because in some scenarios with EntityBag...
  • Blog Post: EntityBag Part IV – ContextSnapshot Fields and Properties

    Well, we’re moving right along—at the fourth part in this series already. I imagine, though, that some of you may be chomping at the bit because you’ve waded through three posts worth of my ramblings without really getting to the hard part yet. At the end of the day we’re basically looking at how to...
  • Blog Post: EntityBag Part III – Public Surface and Serialization

    Now that we can construct an EntityBag, we’ll continue pulling apart the top level class. Public Surface First, there are the public properties. The Mode is trivial, but in the case of the Root property, there are a couple of interesting parts: One is that retrieving the Root will automatically...
  • Blog Post: EntityBag Part II – Modes and Constructor

    In my last post I described the way the EntityBag class can be used. This time around we’ll take a look at the implementation of the top-level EntityBag class itself, and in subsequent posts we’ll dig into some supporting classes. The first thing to understand about EntityBag is the fact that it has...
  • Blog Post: EntityBag Part I – Goals

    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 post . As it turns out, there’s a fair amount of...
  • Blog Post: When deserialize(serialize(x)) != x

    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—and in one of my recent projects I was really fighting...
  • Blog Post: Filtered association loading and re-creating an entity graph across a web service boundary...

    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 relationship navigation, and the ability to either...
  • Blog Post: So they're hard, but what if I need them...

    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 some possible approaches for dealing with those...
  • Blog Post: Why are data-centric web services so hard anyway?

    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, maybe web apps, maybe some business integration batch...
  • Blog Post: DataContract Serialization, Entity Framework and "Known Types"

    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 DataContract/DataMember attritibutes, then you...
  • Blog Post: If you don't know what Astoria is...

    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 . Essentially Astoria (aka ADO.Net Data Services...
Page 1 of 1 (21 items)