I'm playing around with DynamicComponent to see how we might use that
for user generated columns. (extensibility). So far I can easily
create the mapping correctly using the .hbm files but not with
fluent. I want to define custom fields of a specific type, and from
what I see if you just use the default config it tries to create a
varbinary field for any dynamic component. Furthermore, if you don't
try and give it a type it will throw an error something like:
{"property mapping has wrong number of columns:
TestConsole.Session.CustomFields type: component[TestField1]"}
Here is my sample code, how do i specify a datetime or string custom
field?
this.DynamicComponent(x => x.CustomFields,
c =>
{
c.Map(x => x["TestField1"]);
});
Once this is working properly, is there a way to add fields at
runtime? If so how :)
Thanks
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fluent-nhibernate?hl=en.