Re: AR + Selecting just parent

2009-07-08 Thread Markus Zywitza
Do have a Lazy attribute in the type or the activerecord-tag in the configuration which switches off lazy-loading? Having a lazy relationship won't load the items in the colelction until the collecion is used. Note: Looking with a debugger at the Client makes the proxy load the children as the

Re: AR question - deep hierarchy....

2009-07-08 Thread Dan Malcolm
You could look into enabling insert/update statement batching within NHibernate, as outlined here: http://davybrion.com/blog/2008/10/batching-nhibernates-dm-statements/ You may need to change your stategy for id generation though:

Re: AR + Selecting just parent

2009-07-08 Thread Cesar Sanz
Hi, thanks for answering.. I dont know what is happening, let me show you my model.. [Operator] Has Many [Client] [Client] Has Many [Product] Here is Operator Model [ActiveRecord(operators, Schema = dbo)] public class Operator { ... [HasMany(typeof (Client), Cascade

Re: AR + Selecting just parent

2009-07-08 Thread Tuna Toksoz
This query hits db for the OPERATOR relation and it is not lazy, it seems. Tuna Toksöz Eternal sunshine of the open source mind. http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Wed, Jul 8, 2009 at 6:25 PM, Cesar Sanz

Re: AR + Selecting just parent

2009-07-08 Thread Cesar Sanz
Do the [BelongsTo(Operator)] admit lazy loading?? It is not just for parent to child relationships? [Operator] is parent of all [Client] so a [Client] BelongsTo [Operator] How do enable lazy loading for that? Another question.. Why is my my Client table getting updated?? - Original

Re: AR + Selecting just parent

2009-07-08 Thread Cesar Sanz
mmm.. don't see it in any place.. :( Well, I will try by my own. Thanx - Original Message - From: Tuna Toksoz To: castle-project-users@googlegroups.com Sent: Wednesday, July 08, 2009 9:49 AM Subject: Re: AR + Selecting just parent There is lazy loading for many-to-one, I

AR Lazy Loading Don't Work

2009-07-08 Thread the.email.tr...@gmail.com
Hello, I have a question about Lazy Loading.. I have a simple parent-children model [Operator] has many [Client] [Client] has many [Product] so [Operator] --| [Client] ---| [Product] When I do, Client.FindAll, I retrieves all the Operators.. and don't know why. I have decorated all

Re: Compiling Castle Microkernel and Windsor for Silverlight 2.0

2009-07-08 Thread Nigel
Jono Thanks for your continued work on this. I look forward to seeing what you come up with. Nigel. On Jul 5, 12:59 pm, imran imu...@gmail.com wrote: Jono,http://www.flawlesscode.com/post/2008/08/Mocking-and-IOC-in-Silverlig... has done some work on this. Mabe some of it can be reused?

Re: Compiling Castle Microkernel and Windsor for Silverlight 2.0

2009-07-08 Thread Jonathon Rossi
Thanks imran for the link, we have used some things from that attempt. Castle has moved on quite a bit from then and things need to be done properly with #if, but it is a good start. Nigel, thanks. I'm not sure if I'll get a chance to do much more but in the near future. On Thu, Jul 9, 2009 at

Pre-compiling Brail for Medium Trust Environments (Mosso)

2009-07-08 Thread João Bragança
I am unable to get on the fly compilation working correctly for boo. The Reflection.Emit issue has been solved on the boo trunk. Plus Mosso just allowed reflection.emit anyway. However, boo's CompilerParameters makes use of Assembly.Location. The medium trust environment doesn't allow

Why AR is Updating When Performing a Select

2009-07-08 Thread the.email.tr...@gmail.com
Hello.. I am in a hurry cuz I have to release a small project. I use AR for this project, my model is simple, [Client] has many [Product] This is used in a web application, so a new session is opened on each request. The point is.. when I perform a Client.FindAll() it select all the clients