Currently Browsing: Entity Framework

Geometry data type support

LINQ to SQL and Entity Framework don’t support the geometry data type… boo…
read more

Toolset 2009

Most of my work so far this year has been with one client. This client was a Java shop for quite some time and is pretty green to Microsoft. Also, they don’t seem to ever have had real success with building enterprise class systems. That’s not to say that they haven’t wrote very large and very complex systems. They have done it all with either the bare minimum in tooling or a incorrect implementation of the tooling. In fact; one of their primary reasons for moving to .NET was to perform a tooling reset. They decided it was too hard to use technology like OR/M, DI, Messaging, and MVC. The...
read more

Entity Framework, Aggregate Root, One-to-Many & DDD

I’m really digging the DDD Aggregate root design pattern and thought it would be good to create an example of using EF to pull a root from the persistence layer (database). My database: In my little database prjects have releases and stories. releases have sprints and stories and stories have tasks. My root is a project.   My model (EF) A method for pulling the root: Its important to note that child objects must be included in the query. ex: Include("Stories.Tasks") will get the tasks. All the projects Dim _entities As Entities.EntityFrameworkEntities = New Entities.EntityFrameworkEntitiesReturn...
read more