[fluent-nhib] Re: SessionSource and SessionFactory

2008-10-03 Thread Paul Batum
I am afraid I cannot offer you much real advice in that endeavor. If you were to add a bit more detail and background and post it to the alt.net mailing list there is a good chance you'd get a useful answer. The topics of DI and NHibernate come up the

[fluent-nhib] Re: SessionSource and SessionFactory

2008-10-03 Thread anydiem
On Oct 3, 5:13 pm, "Paul Batum" <[EMAIL PROTECTED]> wrote: > However given that code such as the > SessionSource has recieved very little attention since that time (and we > don't sync additional work of Jeremy's into our repo), I would be a little > wary of it. OK, thanks for the info. I may t

[fluent-nhib] Re: SessionSource and SessionFactory

2008-10-03 Thread Paul Batum
To be honest, the SessionSource stuff and indeed most of the stuff in the framework project has been barely touched since we originally started the FluentNHibernate project. It is a snapshot of some functionality that Jeremy Miller was using for a particular app he was working on. Jeremy has expres

[fluent-nhib] Re: SessionSource and SessionFactory

2008-10-03 Thread anydiem
Sorry for the tortured grammar in that last paragraph. Clearly, I can't write code and sentences at the same time. On Oct 3, 2:25 pm, anydiem <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been using FluentNHibernate for some simple projects and had a > question about SessionSource. > > SessionSou

[fluent-nhib] SessionSource and SessionFactory

2008-10-03 Thread anydiem
Hi all, I've been using FluentNHibernate for some simple projects and had a question about SessionSource. SessionSource has an instance of SessionFactory within it. I was having my concrete repository objects take an ISessionSource in the constructor and then pushing in a SessionSource per reque

[fluent-nhib] Re: map same value object multiple times in an entity

2008-10-03 Thread Gabriel Schenker
probably yes. I'll have a look. still: the point is missing (declare a column prefix) even when not using auto-mapping On Fri, Oct 3, 2008 at 5:17 PM, Andrew Stewart <[EMAIL PROTECTED] > wrote: > I think this is the same point, me and Gabriel where talking about in a > previous post. Is this corr

[fluent-nhib] Re: map same value object multiple times in an entity

2008-10-03 Thread Paul Batum
Maybe our automapping expert Andrew Stewart would like to help out Gabriel here? (poke poke) On Fri, Oct 3, 2008 at 8:49 AM, Gabriel Schenker <[EMAIL PROTECTED]>wrote: > note that I have already written about this topic in this blog post > > > http://www.nhforge.org/blogs/nhibernate/archive/2008/

[fluent-nhib] Re: map same value object multiple times in an entity

2008-10-03 Thread Andrew Stewart
I think this is the same point, me and Gabriel where talking about in a previous post. Is this correct? Andy On Fri, Oct 3, 2008 at 3:47 PM, Paul Batum <[EMAIL PROTECTED]> wrote: > Maybe our automapping expert Andrew Stewart would like to help out Gabriel > here? (poke poke) > > > On Fri, Oct 3,

[fluent-nhib] Re: Automapping components

2008-10-03 Thread Gabriel Schenker
Thanks for the response. I'll have a try tonight! If I succeed I'll send you a patch On Fri, Oct 3, 2008 at 10:21 AM, Andrew Stewart < [EMAIL PROTECTED]> wrote: > Hi > I've had a "very" quick look at what your trying to do, and here's the > problem. I don't see a reason why this can't be achieved

[fluent-nhib] Re: Automapping components

2008-10-03 Thread Andrew Stewart
Hi I've had a "very" quick look at what your trying to do, and here's the problem. I don't see a reason why this can't be achieved, although we don't currently support it - to add support you'd have to do something like below: Modify the convention class to hold your convention and create a class

[fluent-nhib] Re: map same value object multiple times in an entity

2008-10-03 Thread Gabriel Schenker
note that I have already written about this topic in this blog post http://www.nhforge.org/blogs/nhibernate/archive/2008/09/06/a-fluent-interface-to-nhibernate-part-2-value-objects.aspx I have especially looked at DRY On Fri, Oct 3, 2008 at 9:44 AM, Gabriel Schenker <[EMAIL PROTECTED]>wrote: >

[fluent-nhib] map same value object multiple times in an entity

2008-10-03 Thread Gabriel Schenker
How can I easily map the same value object (component in NHibernate) multiple times in an entity and be DRY? I am especially interested in auto-mapping e.g. Employee --> HomeAddress (type Address) --> WorkAddress (type Address) where Address is a value object? In Castle ActiveRecord we ha

[fluent-nhib] Re: Automapping components

2008-10-03 Thread Gabriel Schenker
I have now a working version with (code snippet...) .ForTypesThatDeriveFrom(map=>map.Component(t=>t.Address, c=> { c.Map(p => p.Line1); c.Map(p => p.Line2); c.Map(p => p