[fluent-nhib] Re: L2 Cache not caching querys...

2010-01-11 Thread Ollie
Thanks for the info and steps, looks like I'll be buying a copy of NHProf :) Cheers Ollie On 11 Jan, 19:54, Hudson Akridge wrote: > In order to use cached queries you need to perform the following: > 1.) Enable query caching in the hibernate.config (which it appears you have > do

[fluent-nhib] Re: L2 Cache not caching querys...

2010-01-11 Thread Ollie
Thanks for the help Ollie On 11 Jan, 12:14, Paul Batum wrote: > Nothing jumps out at me as wrong, but then again I've never used the > query cache with FNH. If I find the time I'll try to set up a demo > solution using query caching and investigate if I can't get it t

[fluent-nhib] Re: L2 Cache not caching querys...

2010-01-10 Thread Ollie
reeLetter); Map(x => x.Name); } Cheers Ollie On Jan 10, 9:03 pm, Ollie wrote: > This is really a question for 'Paul' as it appears James & Hudson > spend to long playing CS to know anything about L2 caching in FNH ;) > > I've managed to get L

[fluent-nhib] L2 Cache not caching querys...

2010-01-10 Thread Ollie
heable(true).SetFetchSize(1000); Have I missed something from the configuration? Cheers Ollie -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To un

[fluent-nhib] Re: L2 Cache configuration

2010-01-08 Thread Ollie
sounds like you guys need to stop getting pwn'd in CounterStrike and see what this Paul has been up to... Ollie On Jan 8, 5:01 pm, Hudson Akridge wrote: > Well I'll be. Nice find. Looks like Paul's been busy being awesome. > > > > On Fri, Jan 8, 2010 at 11:00 AM

[fluent-nhib] Re: L2 Cache configuration

2010-01-08 Thread Ollie
entMappings.AddFromAssemblyOf()) .ExposeConfiguration(c => { c.EventListeners.PostLoadEventListeners = new IPostLoadEventListener[] {new TestPostLoadListener()}; }) .BuildSe

[fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread Ollie
Cache in FHN?  ;) > > Because we suxx0rz. > > James, > > I pwn you! Pick your team and map, discuss strategy, it won't matter, we'll > beat you even with low grade weapons and a 20 second head start. Bring your > weaksauce! > > > > > > On Thu, Jan 7, 20

[fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread Ollie
this is starting to sound alot like a counterstike chat forum... So can I use an xml config file and FHN simultaneously? and secondly, why haven't you guys made it easy to config L2 Cache in FHN? ;) Ollie On Jan 7, 3:15 pm, James Gregory wrote: > Dude, I hereby ban you from FNH. &g

[fluent-nhib] Re: L2 Cache configuration

2010-01-07 Thread Ollie
can do what > you please. > > > > On Thu, Jan 7, 2010 at 2:08 PM, Ollie wrote: > > Can I configure the L2 cache from FNH? > > > Cheers > > > Ollie > > > -- > > You received this message because you are subscribed to the Google Groups > > &

[fluent-nhib] L2 Cache configuration

2010-01-07 Thread Ollie
Can I configure the L2 cache from FNH? Cheers Ollie -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@googlegroups.com. To unsubscribe from this group, send email

[fluent-nhib] Re: ManyToMany not persisting entry into link table...

2009-10-19 Thread Ollie
DOH! Just realised I don't need the 'Inverse' to be set... Ollie On 19 Oct, 10:37, Ollie wrote: > I've got a self referencing relationship on an entity - a Resource > entity has a set of a 'aliases' which are also Resource entities, a > Resource can h

[fluent-nhib] ManyToMany not persisting entry into link table...

2009-10-19 Thread Ollie
.Cascade.All() .Inverse() .ParentKeyColumn("ResourceId") .ChildKeyColumn("AliasId") .Table("ResourceAliases"); } } Thanks in advance Ollie --~--~-~--~~~---~--~~ You r

[fluent-nhib] Re: ManyToMany not saving...

2009-10-15 Thread Ollie
Thanks for all the help Beer is on me! On Oct 15, 4:59 pm, Hudson Akridge wrote: > gotcha :) glad it's working for you now > > > > > > On Thu, Oct 15, 2009 at 10:58 AM, Ollie wrote: > > > It's not the mapping, it's one of the entities - DOH! >

[fluent-nhib] Re: ManyToMany not saving...

2009-10-15 Thread Ollie
It's not the mapping, it's one of the entities - DOH! The entity was copying the contents out of the collection as opposed to assigning the collection to the internal variable when the set property was being called. Thanks for the help Ollie On 15 Oct, 16:53, Hudson Akridge wr

[fluent-nhib] Re: ManyToMany not saving...

2009-10-15 Thread Ollie
}) .BuildSessionFactory(); return new UnitOfWork(sessionFactory); } Thanks for the continued help ;) Ollie On 15 Oct, 16:15, Hudson Akridge wrote: > Looks good to me, Can you provide a very simple case showing how you use > that mapping in a session?

[fluent-nhib] Re: ManyToMany not saving...

2009-10-15 Thread Ollie
c FileMap() { Table("Files"); Not.LazyLoad(); Id(x => x.Id); HasManyToMany(x => x.Resources) .Cascade.All() .ParentKeyColumn("FileId") .ChildKeyColumn("ResourceId")

[fluent-nhib] ManyToMany not saving...

2009-10-15 Thread Ollie
Why would the following mappings fail to save but load perfectly fine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com

[fluent-nhib] ManyToMany not saving...

2009-10-15 Thread Ollie
Why would the following mappings fail to save but load perfectly fine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com

[fluent-nhib] Re: How do I map a many to many relationshipm in FNH

2009-10-14 Thread Ollie
RelatedAccountId is just another AccountId in the self referencing join table I can get the mapping file to load but not save... Thanks Ollie On Oct 14, 6:04 pm, Hudson Akridge wrote: > How is RelatedAccountId being populated? Typically a MTM has a resulting MTM > on the other side.

[fluent-nhib] How do I map a many to many relationshipm in FNH

2009-10-14 Thread Ollie
.Cascade.All(); } } When I save an Account entity the RelatedAccounts collection is not being persisted into the RelatedAccounts table etc... Can anyone explain what I'm doing wrong? Cheers Ollie --~--~-~--~~~---~--~~ Y

[fluent-nhib] Re: why does fluent NH need config file when using event listeners...

2009-10-14 Thread Ollie
       .Database > (MsSqlConfiguration.MsSql2005.ConnectionString(c => > c.FromConnectionStringWithKey("")).ShowSql()) >                    .Mappings(m => > m.FluentMappings.AddFromAssemblyOf()) >                    .BuildSessionFactory(); > > On Oct 14, 10:50 am,

[fluent-nhib] why does fluent NH need config file when using event listeners...

2009-10-14 Thread Ollie
ise it throws an exception because it can't find the NH config file - I thought the point of fluent NH was to get ride of config file... Cheers Ollie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Fluent

[fluent-nhib] WithTable issue...

2009-10-14 Thread Ollie
I've just updated to the lastest build (1.0.0.593) and when I compile 'WithTable' is not recognised in the mapping file. How do I resolve this? Cheers Ollie --~--~-~--~~~---~--~~ You received this message because you are subscribed to th