[fluent-nhib] Re: PersistenceSpecification question

2009-03-22 Thread Bill
I tried a bunch of things but really don't have a clue what that error I am getting means. Maybe if I could see an example of using a HasMany and then the Reference back with the PersistenceSpecification I could make some sense of it. Not sure what else I might try. Any suggestions would be apprec

[fluent-nhib] Re: PersistenceSpecification question

2009-03-22 Thread Bill
I set Cacasde.All() on the Reference like this: // Reference back to parent Project References(x => x.Project).Cascade.All() .WithForeignKey("ProjectID").WithColumns("ProjectID"); I get the same error System.IndexOutOfRangeException: Invalid index 6 for

[fluent-nhib] Re: PersistenceSpecification question

2009-03-22 Thread James Gregory
Hmm, try setting a Cascade on that relationship. On Sun, Mar 22, 2009 at 6:38 PM, Bill wrote: > > Hi, > > I'm new to FNH and NH and have made some progress with getting my > classes mapped using Fluent. Then I found the > PersistenceSpecification. My question is that when I am just checking > ag

[fluent-nhib] PersistenceSpecification question

2009-03-22 Thread Bill
Hi, I'm new to FNH and NH and have made some progress with getting my classes mapped using Fluent. Then I found the PersistenceSpecification. My question is that when I am just checking against the properties of my class I seem to get the results I expect. If my mapping class has a Reference back

[fluent-nhib] Re: Sql2008 problem

2009-03-22 Thread James Gregory
What was it? On Sun, Mar 22, 2009 at 9:23 AM, Levin wrote: > > Well,I've found the issue... > Treat this post as nothing please:) > > On Mar 21, 2:51 pm, Levin wrote: > > Oh my~ > > [Note:I use nhibernate2.0.1 plus sql2008] > > > > I met sth odd,i tryed all kinds of recipes but no settle. > > >

[fluent-nhib] Re: Sql2008 problem

2009-03-22 Thread Levin
Well,I've found the issue... Treat this post as nothing please:) On Mar 21, 2:51 pm, Levin wrote: > Oh my~ > [Note:I use nhibernate2.0.1 plus sql2008] > > I met sth odd,i tryed all kinds of recipes but no settle. > > 1,The code below works like a charm,(using FluentConfiguration's > Database met