The code line I posted to you works for a HasMany (HasMany(x=>
x.Whatever).AsBag().KeyColumn("ForeignKeyColumn").PropertyRef("ParentPropertyName")
).

There is a PropertyRef as of build 614. What build are you on? And it should
be a property-ref created for the key column element in a HasMany (not the
actual HasMany element).

On Wed, Jan 20, 2010 at 4:08 PM, sternr <[email protected]> wrote:

> HasMany doesnt have .Property-Ref, and according to:
>
> http://www.mail-archive.com/[email protected]/msg02954.html
> It wouldnt have.
>
> Any other ideas?
>
> Thanks,
>
> --sternr
>
> On Jan 20, 6:08 pm, Hudson Akridge <[email protected]> wrote:
> > .PropertyRef("NonPrimaryKeyProperty").etc.era
> >
> >
> >
> >
> >
> > On Wed, Jan 20, 2010 at 3:15 AM, sternr <[email protected]> wrote:
> > > Hey,
> >
> > > I'm in need of creating a HasMany relationship, but the catch is that
> > > since the DataBase scheme was not properly normalized, the column is
> > > not a foreign key.
> > > Is there a way of creating a HasMany relationship based on other
> > > columns or Where clause alone?
> >
> > > Thanks ahead,
> >
> > > --sternr
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Fluent NHibernate" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<fluent-nhibernate%[email protected]>
> <fluent-nhibernate%2bunsubscr­[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/fluent-nhibernate?hl=en.
> >
> > --
> > - Hudsonhttp://www.bestguesstheory.comhttp://twitter.com/HudsonAkridge-Hide 
> > quoted text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<fluent-nhibernate%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>
>
>


-- 
- Hudson
http://www.bestguesstheory.com
http://twitter.com/HudsonAkridge
--
You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group.
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/fluent-nhibernate?hl=en.

Reply via email to