What you mean with "variable number" ?
"dynamic" is on object side, in the DB you have just Tables and Columns.
I'm not sure about what you are trying to do but perhaps an Expando may
help you
On Wednesday, March 14, 2012 6:04:55 AM UTC-3, Exodus wrote:
>
> Hi,
>
> I have this code:
>
> mapper.Class<Test>(ca =>
> {
> ca.Component(x => x.DynamicAttributes, new
> {
> SomeStringAttribute1 = ""
> }, dc =>
> {
> dc.Property(arg =>
> arg.SomeStringAttribute1);
> });
> }
> );
>
> Is there a way to map a variable number of "SomeStringAttributes" where I
> know the number first at runtime. I know I could generate XML for the
> mapping and do it that way, but is it a way to do this when mapping by
> code? :)
>
> Regards,
> Peter
>
>
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nhusers/-/ckC__HV7cwUJ.
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/nhusers?hl=en.