AdFactum ObjectMapper .NET Blog

Official blog of the AdFactum ObjectMapper .NET

New Release – ObjectMapper .NET 1.45.1106.1

Posted by Gerhard Stephan on December 6th, 2006

The new Release covers a new special feature called Nullable Types in Visual Studio .NET.  Using Nullable Types allows you to assign NULL to value types like integer or Guids. That’s very useful when using Databases, because Value Types never existed in that paradigm.

How to declare Nullable Types? That’s pretty simple. Only put a question mark after the value type you want to make nullable.

private int? nullInt = null;
private DateTime? nullTime = null;
private Guid? nullGuid = null;

If you are using Visual Studio .NET 2003 you can work alternatively with the following declaration.

private DateTime nullTime = DateTime.MinValue;
private Guid nullGuid = Guid.Empty;

As an other feature I improved the re-use of SQL Bind Parameters specially for Oracle. And last but not least, I fixed some smaller bugs when exporting the data repository. In Detail:

  • Not all entity relation have been exported in the old version when writing the repository. 
  • Virtual Links based on Virtual Links produced wrong entity relations when writing the repository

Hope you all enjoy the new version of the ObjectMapper .NET

Wish you a merry christmas
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>