:-D

Forget it, it is working perfectly... don't know where I had my mind! 

RP

On Tuesday, August 19, 2014 1:40:23 PM UTC+1, Ricardo Peres wrote:
>
> Hi,
>
> I have this class:
>
> public class DataStore
> {
>   public virtual Int32 DataStoreId { get; set; }
>
>   public virtual String Name { get; set; }
>
>   public virtual IDictionary Attributes { get; set; }
> }
>
> And this mapping:
>
> mapper.Class<DataStore>(ca =>
> {
>   ca.Table("data_store");
>   ca.Lazy(true);
>   ca.Id(x => x.DataStoreId, map =>
>   {
>     map.Column("data_store_id");
>     map.Generator(Generators.HighLow);
>   });
>   ca.Property(x => x.Name, x =>
>   {
>     x.Column("name");
>     x.NotNullable(true);
>   });
>   ca.Component(x => x.Attributes, new { A = 0, B = 0 }, dc => { });
> });
>
> When NHibernate generates the table for me, it creates two columns, A and 
> B. I think this is a bug in mapping by code of dynamic component, or am I 
> missing something?
>
> 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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to