Skip to:
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...
Note: Nullables and SqlTypes are registered by default.
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...