Support for CustomType Parameters #193

mmu75 opened this Issue Nov 14, 2012 · 0 comments

1 participant


Unfortunately it is not possible to configure CustomType implementations using parameters directly in fluent nhibernate.
I'm aware of that this is possible using hbm.xml files but i don't like the idea of spreading the mapping configuration over multiple files.

Therefore I would rather prefer one of these solutions:

preferred syntax:
c.Map(...).CustomType<MyType>(myTypeInstance => {

alternative syntax:
c.Map(...).CustomType<MyType>(new Dictionary<string, object> {
  { "MyProperty1", "value1" }, 
  { "MyProperty2", "value2" }})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment