Re: [fluent-nhib] Active Writer

2011-05-29 Thread Jeffry Morris
Try this: http://nmg.codeplex.com/ It will generate the mappings based on your schema. Most NH aficionados are heavily into creating the db from your mappings, but when you have a brownfield project, that might not be an option. NMG will get you up and running and generate most of your mappings, b

[fluent-nhib] Re: Unable to set IQuery as cacheable

2011-05-29 Thread Vahid
How about this one? (what are your domain classes exactly) var list = session.QueryOver() .Fetch(x => x.Children).Eager .Where(x => x.Parent == null) .TransformUsing(NHibernate.Transform.Transformers.DistinctRootEntity)

Re: [fluent-nhib] Active Writer

2011-05-29 Thread Mohamed Meligy
ActiveWriter is for ActiveRecord attribute mapppings not FNH. For FNH if you want to minimize the code you write, you should check mapping by convention, or -in FNH words- Automapping. With Automapping FNH can do all the mapping for the classes you want without you writing anything almost. You ju

[fluent-nhib] Active Writer

2011-05-29 Thread James Darbyshire
Hi all, Are there any VS addins similar to NHibernate designer which have a visual designer for Fluet NHibernate mappings? I was pointed to ActiveWriter but development appears to have stopped... Thanks in advance. -- Regards, James Darbyshire jamesdarbysh...@gmail.com -- You received this

[fluent-nhib] Unable to set IQuery as cacheable

2011-05-29 Thread Kyle
I am exploring FluentNHibernate with NHibernate 3.0 and have run into an issue that I'm hoping can be resolved easily either by a change in how I'm doing something or an updated build somewhere. Using the following fluent configuration: SessionFactory = Fluently.Configure() .Cache(c => c

[fluent-nhib] Fluent not building from source on OSX using MonoDevelop

2011-05-29 Thread James Darbyshire
Hi all, Does Fluent NHibernate work on Mono under Mac OSX? Is the build broken? I was under the impression that it should do, however when I try to build the cloned source from github I get 6 errors: /Users/jdarbyshire/Documents/git/fluent-nhibernate/src/FluentNHibernate/Conventions/Instances/IC