Posted by Eric Polerecky in Entity Framework, LINQ, SQL, gisSep 7th, 2009 | 1 Comment
LINQ to SQL and Entity Framework don’t support the geometry data type…
boo…
Posted by Eric Polerecky in ASP.NET, ASP.NET MVC, ASP.NET MVC Futures, AutoMapper, CruiseControl.NET, Entity Framework, Facebox, Feedreader, FxCop, LINQPad, MSTest, SVN, SourceMonitor, Spark, Unity, Visual Studio, WebSVN, iTextSharp, jQueryJun 1st, 2009 | No Comments
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...
Posted by Eric Polerecky in DDD, Entity FrameworkApr 30th, 2009 | No Comments
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...