[fluent-nhib] Re: Combine Fluent and XML mapping

2008-10-14 Thread Derick Bailey
I'm using a mixed fluent nhibernate and standard hbm.xml configuration in a very large production system, right now. it works quite well, and as we move forward with changes, we are converting things to fluent nhibernate. here's my configuration code: Configuration _config = new Configura

[fluent-nhib] Re: Combine Fluent and XML mapping

2008-10-14 Thread ruppert . christian
Cool... Havent tried the "mixed" example yet, just plain complete XML or complete fluent... Will try and report back, thanks.. Chris On 14 Okt., 16:19, "James Gregory" <[EMAIL PROTECTED]> wrote: > Many-to-any currently isn't implemented, as far as I'm aware. > Regarding your config, I'd say you

[fluent-nhib] Re: Combine Fluent and XML mapping

2008-10-14 Thread Lee
*blush* that'll teach me to read more carefully. Never used many-to-any before.. interesting. On Tue, Oct 14, 2008 at 9:19 AM, James Gregory <[EMAIL PROTECTED]> wrote: > Many-to-any currently isn't implemented, as far as I'm aware. > Regarding your config, I'd say your first config should work; a

[fluent-nhib] Re: Combine Fluent and XML mapping

2008-10-14 Thread James Gregory
Many-to-any currently isn't implemented, as far as I'm aware. Regarding your config, I'd say your first config should work; as you're using AddMappingsFromAssembly which would add any hbm.xml mappings, then using the persistence model for the fluent stuff. What results are you getting with that fir

[fluent-nhib] Re: Combine Fluent and XML mapping

2008-10-14 Thread Lee
Here is what I have that works for my many to many between users and roles HasManyToMany(x=>x.Roles) .WithTableName( .AsBag() .WithChildKeyColumn( .Cascade.All(); HTH, Lee On Tue, Oct 14, 2008 at 8:56 AM, <[EMAIL PROTECTED]> wrote: > > Hi, I just fell in love with NHibernate and the fluent int