Ah, sorry, I forgot to mention I am using ConventionModelMapper!
Thanks anyway, but this doesn't solve my problem!
Also, how can I specify many to many by convention? I seem to recall a post 
by Fabio saying that it is not possible...?

RP


On Wednesday, February 6, 2013 12:52:02 PM UTC, PeteA wrote:
>
> 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] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *Ricardo Peres
> *Sent:* 06 February 2013 12:32
> *To:* [email protected] <javascript:>
> *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] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> 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