In your products table, does the "Price" column exist? On Wed, Jan 20, 2010 at 2:30 AM, sternr <[email protected]> wrote:
> Hey,
>
> I've tried using the HasMany realtion combined with a Where
> expression, for example:
> (Taken from the Fluent example project)
>
> Id(x => x.Id);
> Map(x => x.Name);
> HasManyToMany(x => x.Products)
> .Where(x=>x.Price > 2) /* This is the Where expression I added */
> .Cascade.All()
> .Table("StoreProduct");
>
> Without the Where, the mapping works perfectly well.
> But when I add the Where, when I try and access the current class's
> Products collection,
> I recieve the following error:
> "SQLite error\r\nno such column: products0_.Price"
>
> Again, to make it easyer for you to reproduce, this was tested on the
> example project bundled with the latest public release.
> Any ideas?
>
> 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]>
> .
> 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.
