Yes - here's an example from my code for a collection of enum's:

 

Set(x => x.Permissions, m => {

       m.Table("UserPermissions");

              m.Cascade(Cascade.All);

              m.Key(k => k.Column("UserId"));

       },

       m => m.Element(e => {

              e.Column("Permission");

              e.Type<EnumStringType<SitePermission>>();

       })

);

 

/Pete

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Ricardo Peres
Sent: 06 February 2013 12:32
To: [email protected]
Subject: [nhusers] Mapping a Collection of Strings By Code

 

Hello!

 

Is the configuration of a collection of simple elements (such as
Strings) already implemented in mapping by code?

I can't seem to find any method like "Element" in the
ISetPropertiesMapper.

 

Thanks!

 

RP

-- 
You received this message because you are subscribed to the Google
Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
!DSPAM:1,51124d701871015343625! 

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to