Yes, Again, you can look at the example project that is bundled inside the Fluent release package. The only thing I did, was to add: .Where(x=>x.Price > 2) /* This is the Where expression I added */ To the mapping class.
Any ideas? --sternr On Jan 20, 6:07 pm, Hudson Akridge <[email protected]> wrote: > 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%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]. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.
