Re: MR - Filters

2010-01-04 Thread Cesar Sanz
Ok, thanks I will start my work on this. I guess I will need help writing this, so I hope you can help me a little with this process.. slts - Original Message - From: John Simons johnsimons...@yahoo.com.au To: Castle Project Users castle-project-users@googlegroups.com Sent: Saturday,

get start with latest release of all monorails projects

2010-01-04 Thread Adriano Ribeiro
Hi, I would like to start use monorial in my projects. I saw that all projects now has your own release cicle, as monorails release with new depencies i ask: If i get trunk version of monorails, i can use prebuild releases of all dependencies, facilities, contribes and component, ex. Monorails

Re: get start with latest release of all monorails projects

2010-01-04 Thread Krzysztof Koźmic
Your best option is to download trunk version from http://www.hornget.net/packages/web/castle.monorail/castle.monorail-trunk and upgrage to official release of MonoRail 2.0 which will come up within 2 weeks. Krzysztof On 2010-01-04 20:51, Adriano Ribeiro wrote: Hi, I would like to start use

Re: get start with latest release of all monorails projects

2010-01-04 Thread Adriano Ribeiro
Very nice, thank you. On 4 jan, 17:56, Krzysztof Koźmic krzysztof.koz...@gmail.com wrote: Your best option is to download trunk version fromhttp://www.hornget.net/packages/web/castle.monorail/castle.monorail-t... and upgrage to official release of MonoRail 2.0 which will come up within 2

ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Mike Christensen
This should be a simple question, but what's the best and easiest way to get a view of all SQL queries being run? I was able to turn on a debug mode that would write queries to Console, but this no longer works when you're writing a web app. If I could just Debug.WriteLine each query that would

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Ricardo Lopes
You can enable NHibernate logging to the console or to a file 2010/1/4 Mike Christensen m...@kitchenpc.com: This should be a simple question, but what's the best and easiest way to get a view of all SQL queries being run?  I was able to turn on a debug mode that would write queries to Console,

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Mike Christensen
I've gotten the Console thing to work with: add key=show_sql value=true However, this doesn't work within a webapp. I've also seen some examples using log4net to log queries to a text file. Last I tried, this wouldn't work for me but I guess what I'm asking is how exactly does log4net do

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Mike Christensen
Oh one more thing, I have this line in my Application_Start event handler: log4net.Config.XmlConfigurator.Configure(); On Mon, Jan 4, 2010 at 5:00 PM, Mike Christensen m...@kitchenpc.com wrote: I've decided my time is spent trying to get log4net to work, however something I'm doing is wrong..  

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Mike Christensen
Hey I figured this out. In my web.config, I had to change: appender-ref name=trace / to: appender-ref ref=trace / The example at http://www.castleproject.org/activerecord/documentation/trunk/advanced/tuning.html is wrong and should be corrected. Thanks! Mike On Mon, Jan 4, 2010 at 5:02

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Ayende Rahien
Mike, Take a look at http://nhprof.com, it does exactly that. On Tue, Jan 5, 2010 at 1:56 AM, Mike Christensen m...@kitchenpc.com wrote: This should be a simple question, but what's the best and easiest way to get a view of all SQL queries being run? I was able to turn on a debug mode that

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Mike Christensen
Yup, I've used it before. It's great but insanely expensive for what it does. I'm curious as to how it works though, I assume it listens on some NHibernate event that gets fired whenever a SQL query is run. On Mon, Jan 4, 2010 at 9:42 PM, Ayende Rahien aye...@ayende.com wrote: Mike, Take a

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Ayende Rahien
That is pretty much it. A simple way to get some of what it does it to use log4net's debug appender for NHibernate.SQL and use dbgviewer to look at it. On Tue, Jan 5, 2010 at 7:44 AM, Mike Christensen m...@kitchenpc.com wrote: Yup, I've used it before. It's great but insanely expensive for

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Mike Christensen
Yup, that's what I ended up doing. I use the DebugAppender class and now I can see all the NHibernate SQL calls in the Visual Studio output window. Very handy! On Mon, Jan 4, 2010 at 9:46 PM, Ayende Rahien aye...@ayende.com wrote: That is pretty much it. A simple way to get some of what it

Re: ActiveRecord - What's the easiest way to see all queries run?

2010-01-04 Thread Ken Egozi
you can also use plain ol' show_sql, and in your web app you'd use Console.SetOut to re-route the default Console.Out stream to whereever you like (filesystem, db, trace, whatever) I started to answer here, but it grew too large, so I made it into a blog post: