The ObjectMapper .NET Project

Official blog of the AdFactum ObjectMapper .NET

Archive for March, 2007

New Release – ObjectMapper .NET 1.50.1428.0

Posted by Gerhard Stephan on 29th March 2007

This release is a hot fix for the last version which had a small bug. In some special cases the ObjectMapper .NET wasn’t been able to deep load the object.

There had been some dependencies to get the bug, but it wasn’t impossible 🙂

  • You’re working with General Links.
  • You’re working with GetNestedObject and/or GetNestedCollection
  • And you’re working with FlatSelect and than Select to load an object with full hierarchy.

This bug should now be fixed.

Cheers
– Gerhard

http://www.objectmapper.net/download/ObjectMapper_1.50.1428.0.exe

kick it on DotNetKicks.com

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Posted in Releases | No Comments »

Attribute: [SelectFunction]

Posted by Gerhard Stephan on 21st March 2007

The SelectFunction attribute is used to define a database function that is called when selecting the object from database. This function might be used to get the last access date of an object in database. Have a look at the following example.

        /// <summary>

        /// Gets or sets the last read.

        /// </summary>

        /// <value>The last read.</value>

        [SelectFunction("GETDATE()")]

        public DateTime LastRead

        {

            get { return lastRead; }

            set { lastRead = value; }

        }

The created SQL looks like:

SELECT [DATABASEFUNCTION].* , GETDATE() as LASTREAD FROM [DATABASEFUNCTION]  WHERE [DATABASEFUNCTION].[ID]=’12fca955-12ba-4486-bf89-4bf92d6db13d’;

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Posted in Attributes | No Comments »

Attribute: [UpdateFunction]

Posted by Gerhard Stephan on 21st March 2007

The UpdateFunction attribute is used to define a database function that is called when updating the object in database. This function might be used to store the lastupdate of an object to database. Have a look at the following example.

        /// <summary>

        /// Gets or sets the last updated.

        /// </summary>

        /// <value>The last updated.</value>

        [UpdateFunction("GETDATE()")]

        public DateTime LastUpdated

        {

            get { return lastUpdated; }

            set { lastUpdated = value; }

        }

 

The created SQL looks like:

UPDATE DATABASEFUNCTION SET [LASTUPDATED] = GETDATE() WHERE [DATABASEFUNCTION].[ID]=’12fca955-12ba-4486-bf89-4bf92d6db13d’;

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Posted in Attributes | No Comments »

Attribute: [InsertFunction]

Posted by Gerhard Stephan on 21st March 2007

The InsertFunction attribute is used to define a database function that is called when inserting the object into the database. This function might be used to store the creation date of an object to database. Have a look at the following example.

        /// <summary>

        /// Gets or sets the creation.

        /// </summary>

        /// <value>The creation.</value>

        [InsertFunction("GETDATE()")]

        public DateTime Creation

        {

            get { return creation; }

            set { creation = value; }

        }

The created SQL looks like:

INSERT INTO [DATABASEFUNCTION] ( [CREATION], [ID]) VALUES ( GETDATE(), ’12fca955-12ba-4486-bf89-4bf92d6db13d’);

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Posted in Attributes | No Comments »

New Release – ObjectMapper .NET 1.50.1419.0

Posted by Gerhard Stephan on 21st March 2007

Today I’m proud to present you the new release of the AdFactum ObjectMapper .NET.

This release has the most changes in method GetNestedObject and GetNestedCollection. Both methods can now handle nested objects or collections that have been tagged with the [GeneralLink] attribute. As a consequence of that change the GetNestedCollection method does not need the child type parameter any more. Which might result in code changes within your application.

So have fun with it.
Cheers

– Gerhard

http://www.objectmapper.net/download/ObjectMapper_1.50.1419.0.exe

kick it on DotNetKicks.com

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Posted in Releases | No Comments »