The Self-Taught Programmer

Recipes from real-world experience with asp.net.

How to Troubleshoot Problems Upgrading an Existing App from EntitySpaces 2009

leave a comment »

I am a big fan of EntitySpaces, a .NET ORM framework that I find very easy to use. When the developers upgraded the framework in 2010, they “broke” some things I used in my code. Specifically, they changed the way instantiate a new ORM entity. Entities used to have a method that looked like this…

esEntity.AddNew()

According to the release notes:
This method has been removed. It was optional in 2009 and has finally been removed. If you have overloaded or overridden this virtual method in a Custom class, you should move that logic to the constructor in your Custom classes (see above) and remove the custom AddNew method.

In fact, there were a bunch of “breaking” changes in ES2010. Keep a copy of the release notes when you upgrade past 2010 so that you will have a way to troubleshoot old apps when you upgrade them. (This is a good idea for all developer tools and languages, in fact.)

Advertisements

Written by Jim McMullen

October 17, 2011 at 2:37 pm

Posted in How-To

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: