[fluent-nhib] Re: Session on Fluent NHibernate at Chicago Code Camp this Saturday (5/30)

2009-05-31 Thread Bill
Hey Hudson, Thanks for the Excellent presentation on Fluent. We left the session totally pumped and couldn't wait to get back home to try some of this stuff!! I was wondering where/when your demo/ppt, etc will be posted? Looking forward to it.It was great meeting you in person. thanks! Bil

[fluent-nhib] Re: Newbie Basic Question

2009-04-20 Thread Bill
se that I might read to help me understand this? In this type of design, is it possible to let NHibernate generate all the id's and for the application not to have to worry about it? Thanks in advance and forgive me for this being such a newbie question. Bill On Apr 13, 6:30 pm, Hudson A

[fluent-nhib] Newbie Basic Question

2009-04-13 Thread Bill
Insert verses a Delete or if I Save at the top level (Customer) will NHibernate figure out what SQL to generate? Please forgive me if this is a stupid question. thanks! Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[fluent-nhib] Re: Version attribute in Fluent?

2009-04-07 Thread Bill
Hi Hudson, Thanks Much!! Bill On Apr 7, 4:43 pm, Hudson Akridge wrote: > public class OrderMap : ClassMap >     { >         public OrderMap() >         {          ... >           Version(x => x.Version); >         }    } > > > > On Tue, Apr 7, 2009

[fluent-nhib] Version attribute in Fluent?

2009-04-07 Thread Bill
Version in Fluent as NH needs? thanks! Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe f

[fluent-nhib] Version attribute in Fluent?

2009-04-07 Thread Bill
Version in Fluent as NH needs? thanks! Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe f

[fluent-nhib] Re: PersistenceSpecification question

2009-03-24 Thread Bill
to test it. thanks! Bill On Mar 23, 2:09 pm, Bill wrote: > Thanks again James. I really appreciate all you're doing to try and > help. I understand the trial and error part.  :) > > I tried using a single ID instead of the composite and get the same > error. But from what Derik

[fluent-nhib] Re: PersistenceSpecification question

2009-03-23 Thread Bill
base.Default); new PersistenceSpecification(session) .CheckProperty(x => x.ProjectID, "23456") .CheckProperty(x => x.RouteID, "R1") .CheckProperty(x => x.StartTime, dt) .CheckReference(x => x.Proje

[fluent-nhib] Re: PersistenceSpecification question

2009-03-23 Thread Bill
rojectID, RouteID) VALUES (?, ?, ?, ?, ?, ?, ?)] ---> System.Data.SqlClient.SqlException: Invalid column name 'Project_id'.. Interesting. Thanks! Bill On Mar 23, 7:55 am, James Gregory wrote: > Sorry Bill, I was out last night and missed your last message. Derik > Whittaker actually blogged very > recently<htt

[fluent-nhib] Re: PersistenceSpecification question

2009-03-22 Thread Bill
ld be appreciated. thanks, Bill On Mar 22, 2:59 pm, Bill wrote: > I set Cacasde.All() on the Reference like this: > >             // Reference back to parent Project >             References(x => x.Project).Cascade.All() >                 .WithForeignKey("ProjectID").WithCo

[fluent-nhib] Re: PersistenceSpecification question

2009-03-22 Thread Bill
t;) .CheckProperty(x => x.MilesTraveled, 34) .CheckReference(x => x.Project, _project) .VerifyTheMappings(); } thanks! Bill On Mar 22, 2:42 pm, James Gregory wrote: > Hmm, try setting a Cascade on that relationship.

[fluent-nhib] PersistenceSpecification question

2009-03-22 Thread Bill
fRangeException: Invalid index 6 for this SqlParameterCollection with Count=6.. I'm probably just doing something stupid. Any ideas would be gratefully welcomed. thanks! Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[fluent-nhib] Re: One-To-Many with Composite Key

2009-03-17 Thread Bill
.WithForeignKeyConstraintName("ProjectID"); } } thanks, Bill On Mar 17, 9:03 am, James Gregory wrote: > That looks like a bug. Have you updated recently? Because that looks > like an outdated syntax. > > On 3/17/09, Bill wrote: > > > > > > >

[fluent-nhib] One-To-Many with Composite Key

2009-03-17 Thread Bill
eLocation [RouteID])) must have same number of columns as the referenced primary key (Route [ProjectID, RouteID]). I'm sure that this is probably just something really stupid that I am overlooking as I am a newbie to both NH and FNH. thanks in advance! Bill --~--~-~--~~~--

[fluent-nhib] Re: Can a Child have a list of Children items?

2009-03-15 Thread Bill
Hi, I hope that SQL helps. Please let me know if there is any other info that I can provide that might help. It's strange that it says that there is no mapping. thanks! Bill On Mar 15, 3:50 pm, Bill wrote: > James, > > Here's the sql for creating the db. Hope this is what

[fluent-nhib] Re: Can a Child have a list of Children items?

2009-03-15 Thread Bill
pe], [FullPath], [FlagSelected], [SequenceNo]) VALUES ('7', 'PL\600011124', '7jx0jh1', 1, '/All Projects/ Whirlpool/Project1', 1, 0); INSERT INTO [VRA].[dbo].[Project] ([ProjectID] ,[UserID], [MachineName], [NodeType], [FullP

[fluent-nhib] Re: Can a Child have a list of Children items?

2009-03-15 Thread Bill
y other way to get additional debug info? Or if there are any examples of 3 levels like this. I would think that another level would be just the same as the root to the first child. Of course, the IDs confuse me a little as if I am getting a Project and it has a list of Routes and those Routes has a lis

[fluent-nhib] Re: Can a Child have a list of Children items?

2009-03-15 Thread Bill
hen I have additional levels to add as you can see about with ShipmentList and EventList. thanks!! Bill On Mar 15, 2:03 pm, James Gregory wrote: > Could you show me some example classes? I don't want to make suggestions > until I know exactly what you're trying to do. > >

[fluent-nhib] Can a Child have a list of Children items?

2009-03-15 Thread Bill
k. Is this even possible in Fluent NHibernate or even NHibernate? I am new to both of these technologies so thought I'd better ask. If anyone has a working example of 3 levels of entities that work I'd appreciate seen how to do this. tha