The ObjectMapper .NET Project

Official blog of the AdFactum ObjectMapper .NET

Archive for July, 2006

Attribute: [Table]

Posted by Gerhard Stephan on 13th July 2006

The table attribute is used to rename the mapping from class to database table.

      [Table („CONTACTS“)]

      public class Contact : ValueObject

 

The ObjectMapper .NET does not need that property to map the class to a database table. If the attribute misses, the class name itself will be taken as the valid name for the database table.

But most times it makes sense to rename the mapping of the class to the underlaying database table. Imagine your class is named "Contact", so you would instinctively name your database table "Contacts". That is because the database table contains the plural of your entities, but the class itself is defined as a singular entity.

 

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Posted in Attributes | No Comments »

Attribute: [PropertyLength]

Posted by Gerhard Stephan on 11th July 2006

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Posted in Attributes | 1 Comment »

Attribute: [PropertyName]

Posted by Gerhard Stephan on 11th July 2006

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Posted in Attributes | No Comments »

Attribute: [Ignore]

Posted by Gerhard Stephan on 7th July 2006

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Posted in Attributes | No Comments »

New Release - ObjectMapper .NET 1.1.605.1

Posted by Gerhard Stephan on 5th July 2006

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...

Posted in Releases | No Comments »