[fluent-nhib] Foreign as lambda

2009-02-19 Thread Chris Constantin
Hi all, I just did a new build, and it looks like Foreign(x=>x.User) is no longer supported. To me it seems like both Foreign(lamda) and Foreign (string) should be supported. Any plans on adding it back? Thanks, Chris --~--~-~--~~~---~--~~ You received this messag

[fluent-nhib] Re: Fluent NHibernate and the Windsor NHibernate Integration Facility

2009-01-08 Thread Chris Constantin
I did exactly the same thing, created a custom configuration builder. I have attached it, plus the patch to get the facilities to build. Hope this helps, Chris On Thu, Jan 8, 2009 at 10:48 AM, Tuna Toksöz wrote: > Hmm, > What part of castle facility is failing to build? > > > Tuna Toksöz > http:

[fluent-nhib] Re: Order of Properties in the mapping file

2009-01-07 Thread Chris Constantin
Hi Ryan, take a look at this thread: http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/4cec13861eeccde3/96951c425ebb785d?hl=en#96951c425ebb785d I planned on creating a patch, but I didn't find the time yet. Chris On Wed, Jan 7, 2009 at 12:33 PM, Ryan Kelley wrote: > > I ha

[fluent-nhib] Re: bas.Map to avoid compiler warning

2008-12-24 Thread Chris Constantin
Why not have both options? :) On Wed, Dec 24, 2008 at 9:39 AM, Chris Marisic wrote: > > If you're classes are that similar that you could set up a basemap for > them, why wouldn't you just use AutoMapping since that's the point of > it to have it be able to handle the commonality of classes easi

[fluent-nhib] Re: bas.Map to avoid compiler warning

2008-12-24 Thread Chris Constantin
I can envision schenarios where you'd want to inherit from a MyBaseMap class. I'm for James' solution . On Wed, Dec 24, 2008 at 9:28 AM, Chris Marisic wrote: > > I think Chris's answer is the best solution. Adding in Initialization > methods makes me feel that I'm working with data tables and ot

[fluent-nhib] Re: bas.Map to avoid compiler warning

2008-12-24 Thread Chris Constantin
As a temporary solution, you can mark your MyClassMap class as sealed, and the warnings will go away. Chris On Tue, Dec 23, 2008 at 11:37 PM, James Gregory wrote: > > Because that's not a very nice solution. The whole point of a fluent > API is that it's readable, and having base prefixed on ev

[fluent-nhib] Re: how to control column ordering when exporting schema

2008-12-18 Thread Chris Constantin
hat you can do is to interfer with the XML generation and work on that > > On Thu, Dec 18, 2008 at 9:58 PM, Paul Batum wrote: >> >> Chris I don't think you are missing anything. As far as I can tell >> specifying the column ordering is not supported. >> >

[fluent-nhib] Re: using lambda expression to specify the property associated with a "foreign" id generator

2008-12-15 Thread Chris Constantin
;> >> On Mon, Dec 15, 2008 at 6:01 AM, Chris Constantin >> wrote: >>> >>> Is it possible to replace: >>> Id(x => x.Id) >>>.GeneratedBy.Foreign("User"); >>> with >>> Id(x => x.Id) &

[fluent-nhib] using lambda expression to specify the property associated with a "foreign" id generator

2008-12-14 Thread Chris Constantin
Is it possible to replace: Id(x => x.Id) .GeneratedBy.Foreign("User"); with Id(x => x.Id) .GeneratedBy.Foreign(x => x.User); ? It would be refactoring friendly. Thanks, Chris --~--~-~--~~~---~--~~ You received this message

[fluent-nhib] how to control column ordering when exporting schema

2008-12-14 Thread Chris Constantin
I'm generating the db schema using NHibernate schema export tool. The columns are generated in the order specified in the mappings files, when using the xml mappings. After switching to FluentNHibernate though, the columns appear to be in random order, more or less, and I cannot find any way to co