Does anyone know how can we automatically map dynamic components using Fluent Automapping in NHibernate?
I know that we can map normal classes as components, but couldn’t figure out how to map dictionaries as dynamic-components using fluent automapping.
Thanks
We’ve used the following approach successfully (with FluentNH 1.2.0.712):
Here we’ve mapped all members of some Enum to separate columns where all of them are of type int. Right now I’m working on a scenario where we use different types for the dynamic columns which looks like this instead:
This also works very well.
What I’m still about to figure out is how to use
Referencesinstead ofMapfor referencing other types that have their own mapping…UPDATE:
The case with References is unfortunately more complicated, please refer to this Google Groups thread. In short:
That’s all for now.