AAAGH! Sorry! I since read DG's reply properly (I was copying your code from the website tutorial which needs to be updated). Added the Cascade.All() and it now works. Oops.
On Mar 30, 11:03 pm, depaulo <[email protected]> wrote: > I am afraid I have the same problem and am using the latest code from > the repository (revision 432). > All the tables are saving apart from the Employee table (I am using > SQL Server 2005) > Any help appreciated! > > On Mar 25, 10:09 pm, James Gregory <[email protected]> wrote: > > > > > Great, glad that fixed it. > > And yes, that's a bi-directional relationship. > > > On Wed, Mar 25, 2009 at 9:03 PM, DG <[email protected]> wrote: > > > > Bravo James. I seem to have missed your updates the first time. I > > > just did a fresh checkout of the Examples project. I see you added > > > the Cascade.All to the StoreMap.cs. As the code currently is, is it > > > correct to say that a One-To-Many bidirectional relationship is > > > established between Store and Employee? > > > > On Mar 25, 4:18 pm, James Gregory <[email protected]> wrote: > > > > I know you said you've got the latest code, but are you absolutely sure? > > > I > > > > ask because I committed a fix to this a few hours ago. > > > > > On Wed, Mar 25, 2009 at 8:10 PM, DG <[email protected]> wrote: > > > > > > Looking for help in setting up the most basic one-to-many example. I > > > > > have used the Examples.FirstProject from the FluentNHibernate src > > > > > folder as a base project. I implemented the database tables and > > > > > fields using SQL Server 2008 Express. When I run this example, all > > > > > tables except for the Employee table populates. Has anyone run into > > > > > this issue? > > > > > > Some side notes... I have the most recent code pulled down using > > > > > Tortoise SVN. No errors are occurring. My Tables reflect the same > > > > > diagram as in the example (http://wiki.fluentnhibernate.org/show/ > > > > > GettingStarted:+First+Project).- Hide quoted text - > > > - Show quoted text -- 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 -~----------~----~----~----~------~----~------~--~---
