AdFactum ObjectMapper .NET Blog

Official blog of the AdFactum ObjectMapper .NET

New Release – AdFactum ObjectMapper .NET 1.90.1917.0

Posted by Gerhard Stephan on September 17th, 2007

The new release of the AdFactum ObjectMapper .NET covers several enhancements that have been discussed in other thread within this blog.

First of all the OBM (ObjectMapper .NET Manager Class) has been included in the current release. That means that you don’t have to implement multi threading functionality by your own. You can simple use the OBM helper class. The original idea of the OBM has been explained in Tutorial 4. The only difference is, that the signature of the Method CreateMapper has been changed.

public static ObjectMapper CreateMapper(DatabaseConnection connection)

The DatabaseConnection Property specifies the Database to that the ObjectMapper .NET connects to. I’m going to write further blog entries in order to explain the new OBM class.

Furthermore I replaced the class BaseFactory with the new UniversalFactory. This class covers the the changes from the blog entry "A Final performance boost" which unleash incredible performance when loading many objects. To enable this performance boost your entities have to implement the ICreateObject interface.

    public interface ICreateObject

    {

        /// <summary>

        /// Creates the new object.

        /// </summary>

        /// <returns></returns>

        IValueObject CreateNewObject();

    }

 

As third improvement I re-worked all classes that implements the IDisposable interface in order to use the correct IDisposable Pattern.

Last but not least, I fixed the bug "[ 1793851 ] OrderBy does not generate parenthesis". The problem was that SQL Statements misses parenthesis within the ORDER BY clause. Which is very bad if you are using reserved words like INDEX.

That’s all for now.
Cheers

– Gerhard

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>