NHibernate.Mapping.Attributes - Registration of properties' types patterns

Description

Currently, Nullables properties are automatically mapped to their NullableTypes.
We can make this extensible to other libraries:

  • Add a Hashtable _patterns to HbmWriter where the key is a string (the pattern) and the value is another string (the replacement)

  • Fill this collection in its property "virtual Patterns": if (_patterns==null) new Hashtable, add nullables, NHibernate.UserTypes.*, ...;

  • Use its property in HbmWriter.WriteProperty()

So to disable it, you can do: HbmWriter.Patterns = new Hashtable();
And to reset it: HbmWriter.Patterns = null; // will be rebuilt...

Environment

None

Activity

Show:

Pierre Henri Kuaté June 24, 2006 at 8:40 AM

Note: Nullables and SqlTypes are registered by default.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created April 29, 2006 at 8:51 AM
Updated July 9, 2008 at 11:54 PM
Resolved June 24, 2006 at 8:39 AM
Who's Looking?