Hi,

I have the following model:

class Parent
{
  public virtual long Id { get; set; }
  public virtual ICollection<Child> Children { get; set; }
}

class Child
{
  public virtual long Id { get; set; }
}

with mapping for Parent:

Id(x => x.Id);
HasManyToMany<Child>(x => x.Children);

and Child:

Id(x => x.Id);

Now I want to change ICollection<Child> for Children to IDictionary<long, 
Child> with key equal to Child.Id. If I try

HasManyToMany<Child>(x => x.Children).AsMap(child => child.Id)

it adds an extra column to mapping table. The added column is duplicate to 
child key column since it contains the exact same value. Is there a way to 
have IDictionary without the extra column?

Thanks,

David Brodsky

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fluent-nhibernate+unsubscr...@googlegroups.com.
To post to this group, send email to fluent-nhibernate@googlegroups.com.
Visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to