[fluent-nhib] Re: Don't change the reference to a collection with cascade="all-delete-orphan"

2009-07-28 Thread Paul Batum
I cannot see anything wrong with the code that you have shown. You need to give us more information on the error that is occuring, and your entity mappings. On Wed, Jul 29, 2009 at 4:57 AM, Nigel wrote: > > I have an entity with children. I need to loop through the children > and update a date

[fluent-nhib] Re: Map a view to an entity

2009-07-28 Thread Tomk
I am using a file-based db; that was also exactly where it went wrong; the file could not be found. I did try this from a TDD perspective, ie first check if the Sessionfactory got created, then checked if there was a session that was connected. I didn't expect the session to be connected when the

[fluent-nhib] Re: NHibernate 2.1GA...

2009-07-28 Thread Greg Cook
thanks... I grabbed the wrong 1... On Tue, Jul 28, 2009 at 2:15 PM, James Gregory wrote: > There's already one, and it's available in the same place as all the other > binaries, the download page . > > On Tue, Jul 28, 2009 at 9:14 PM, greg.co...@gmail.com <

[fluent-nhib] Re: NHibernate 2.1GA...

2009-07-28 Thread James Gregory
There's already one, and it's available in the same place as all the other binaries, the download page . On Tue, Jul 28, 2009 at 9:14 PM, greg.co...@gmail.com wrote: > > Hi, > > I was curious when there will be a release of FNH that uses NHibernate > 2.1GA..

[fluent-nhib] NHibernate 2.1GA...

2009-07-28 Thread greg.co...@gmail.com
Hi, I was curious when there will be a release of FNH that uses NHibernate 2.1GA? or is there already one and I'm looking in the wrong spot for it? Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent N

[fluent-nhib] Re: NHibernate delete query gives Unexpected row count error

2009-07-28 Thread James Gregory
Not the first, won't be the last :) On Tue, Jul 28, 2009 at 8:42 PM, Mikael Henriksson wrote: > Don't mean to be rude or anything but LOL! I did the same thing but > completely opposite :) > > 2009/7/28 James Gregory > > You want the NHibernate mailing list

[fluent-nhib] Re: Map a view to an entity

2009-07-28 Thread Stuart Childs
How are you working with your SQLite database? I'm assuming this is an in-memory database which has a common pitfall: when the session is closed and disposed, your database goes with it! Make sure you hold that connection open until you're finished with the database run. If my assumption is wrong

[fluent-nhib] Re: NHibernate delete query gives Unexpected row count error

2009-07-28 Thread Mikael Henriksson
Don't mean to be rude or anything but LOL! I did the same thing but completely opposite :) 2009/7/28 James Gregory > You want the NHibernate mailing list, > not the F*luent* NHibernate mailing list. > > > On Tue, Jul 28, 2009 at 6:13 PM, Hfern wrote: > >>

[fluent-nhib] Re: Map a view to an entity

2009-07-28 Thread Tomk
ok, now the generated sql is valid but SQLite does not recognise the view. I get > System.Data.SQLite.SQLiteException : SQLite error no such table: Theme Whereas when I execute the sql in SQLite expert directly all goes well. Any suggestions on how to get this working with SQLite? On Jul

[fluent-nhib] Re: Map a view to an entity

2009-07-28 Thread Stuart Childs
NHibernate requires that mapped classes have an element. You haven't created one with your mapping. Instead of Map(s => s.ReportID); you need Id(s => s.ReportID);. On Tue, Jul 28, 2009 at 1:58 PM, Tomk wrote: > > > I'd like to map a view to a newly created entity. I'm only after > getting the da

[fluent-nhib] Map a view to an entity

2009-07-28 Thread Tomk
I'd like to map a view to a newly created entity. I'm only after getting the data, nothing more. The view has only two columns, ReportID and ThemeName. How should the mapping look? I now have this but throws an error: An invalid or incomplete configuration was used while creating a SessionFacto

[fluent-nhib] Don't change the reference to a collection with cascade="all-delete-orphan"

2009-07-28 Thread Nigel
I have an entity with children. I need to loop through the children and update a date time field. When I try to save the parent (item) or the child (doc) I get the Don't change the reference to a collection with cascade="all-delete-orphan" error. Funny thing is I don't think I am changing the refe

[fluent-nhib] Re: NHibernate delete query gives Unexpected row count error

2009-07-28 Thread James Gregory
You want the NHibernate mailing list, not the F*luent* NHibernate mailing list. On Tue, Jul 28, 2009 at 6:13 PM, Hfern wrote: > > I am using version 1.2.1.400 of Nhibernate > while trying to delete a row from the database I get the following > error.The ro

[fluent-nhib] NHibernate delete query gives Unexpected row count error

2009-07-28 Thread Hfern
I am using version 1.2.1.400 of Nhibernate while trying to delete a row from the database I get the following error.The row does get deleted [NHibernate.StaleStateException]{"Unexpected row count: -1; expected: 1"} here is the stack trace - at NHibernate.

[fluent-nhib] Re: inlining raw hbm.xml code for ternary association into an existing fluent mapping?

2009-07-28 Thread Stuart Childs
Unless someone fixed it when I wasn't looking, AsTernaryAssociation can only generate a mapping that "looks correct" in XML, but doesn't actually work (i.e. NH wants a Dictionary object, AsTernaryAssociation won't take one). I started on some HasMap functionality to make mapping "Maps" more fluent

[fluent-nhib] Re: inlining raw hbm.xml code for ternary association into an existing fluent mapping?

2009-07-28 Thread James Gregory
There's an AsTernaryAssociation method on HasMany, is that not of use? On Tue, Jul 28, 2009 at 2:43 PM, Paul Batum wrote: > I'm afraid there isn't a way to mix xml and fluent mappings at the level > you are hoping for. You will need to map that class using xml or start > working on a patch for t

[fluent-nhib] Re: inlining raw hbm.xml code for ternary association into an existing fluent mapping?

2009-07-28 Thread Paul Batum
I'm afraid there isn't a way to mix xml and fluent mappings at the level you are hoping for. You will need to map that class using xml or start working on a patch for ternary support :) On Sat, Jul 25, 2009 at 6:22 PM, Fost andy wrote: > > Howdy folks, > > I'm wondering if there is a way to inli

[fluent-nhib] Re: FluentMappings.Add overload

2009-07-28 Thread James Gregory
+1 I prefer it when people show us problems, then *we *can provide the solution. Providing solutions doesn't help us understand if there's a greater issue we need to consider. On Tue, Jul 28, 2009 at 2:36 PM, Paul Batum wrote: > It would be easier to follow what you are suggesting if you could p

[fluent-nhib] Re: FluentMappings.Add overload

2009-07-28 Thread Paul Batum
It would be easier to follow what you are suggesting if you could provide some code. On Mon, Jul 27, 2009 at 9:07 AM, Mira.D wrote: > > I'm really new to Fluent NHibernate, but I'm really enjoying this. > It took care of all my major problems with dynamic mappings. > I'm not sure if here is th

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread James Gregory
You don't need Castle and LinFu, just one of them. I didn't realise the binary zip wasn't including those dlls, I'll update them asap. Thanks for pointing it out. On Tue, Jul 28, 2009 at 9:57 AM, Tomk wrote: > > > I've added all FNH dlls to the project, did another run but got the > same errors.

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread Tomk
I've added all FNH dlls to the project, did another run but got the same errors. The NHibernate.ByteCode.LinFu.dll and NHibernate.ByteCode.Castle.dll are not included in FNH, downloaded these from NHibernate latest bits and set the project to x86. Included the x86 version of SQLite and got it to

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread Tomk
I downloaded build 535 with the assumption these are the latest bits; haven't installed svn yet, will do that now. Is this the correct version? On Jul 28, 10:25 am, James Gregory wrote: > Those exceptions are saying you haven't set the proxy factory factory... > UnableToLoadProxyFactoryFactory

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread James Gregory
That is the correct version, there's no point getting SVN in that case. Check what assemblies are being put into your output folder. Make sure the Castle proxy stuff is there. On Tue, Jul 28, 2009 at 9:29 AM, Tomk wrote: > > > > I downloaded build 535 with the assumption these are the latest bit

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread James Gregory
Those exceptions are saying you haven't set the proxy factory factory... UnableToLoadProxyFactoryFactoryException Are you using the latest FNH? If so it should default to using the Castle proxy factory, have you included the NHibernate.Castle.ByteCode.dll? On Tue, Jul 28, 2009 at 9:17 AM, Tomk wr

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread Tomk
I have also tried including the x86 dll and setting the build to x86. I then get a whole lot more info in my output screen (sorry for the large dump). Maybe this will help to troubleshoot. 'ConsoleApplication1.vshost.exe' (Managed): Loaded 'C:\Windows\assembly \GAC_32\mscorlib\2.0.0.0__b77a5c561

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread Tomk
I've set it to x64, and no, it didn't make a difference. Anyone that has an x64 Getting started example that I can use to compare? On Jul 28, 9:41 am, James Gregory wrote: > Is your application being built as x64 or Any CPU? Not that it should > matter... > > > > On Tue, Jul 28, 2009 at 8:36 AM

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread James Gregory
Is your application being built as x64 or Any CPU? Not that it should matter... On Tue, Jul 28, 2009 at 8:36 AM, Tomk wrote: > > > Yes, I included the x64 version of 1.0.65.0 > > On Jul 28, 9:27 am, Tuna Toksoz wrote: > > Are you using the x64 version of SqlLite? > > > > Tuna Toksöz > > Eternal

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread Tomk
Yes, I included the x64 version of 1.0.65.0 On Jul 28, 9:27 am, Tuna Toksoz wrote: > Are you using the x64 version of SqlLite? > > Tuna Toksöz > Eternal sunshine of the open source mind. > > http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike > > > > On Tue, Jul

[fluent-nhib] Re: SQLite config on x64 - how to get going?

2009-07-28 Thread Tuna Toksoz
Are you using the x64 version of SqlLite? Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Tue, Jul 28, 2009 at 10:26 AM, Tomk wrote: > > I'm trying to get started with FNH and SQLite but I can't g

[fluent-nhib] SQLite config on x64 - how to get going?

2009-07-28 Thread Tomk
I'm trying to get started with FNH and SQLite but I can't get the demo's to work on my machine. My setup is Windows 7, x64 and have tried both Gabriel Schenkers as the tutorial code from the wiki. I'm getting "An invalid or incomplete configuration was used while creating a SessionFactory. Check