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 Message ----- From: Tuna Toksoz To: [email protected] Sent: Wednesday, July 08, 2009 9:33 AM Subject: Re: AR + Selecting just parent 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 <[email protected]> wrote: [ActiveRecord("clients", Schema = "dbo")] public class Client { ... [HasMany(typeof (Product), Cascade = ManyRelationCascadeEnum.All, Lazy = true)] public virtual IList<Product> Products { get { return _products; } set { _products = value; } } [BelongsTo("Operator")] public virtual Operator Operator { get { return _operator; } set { _operator = value; } } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
<<inline: profiler.GIF>>
