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
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:
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
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
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
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
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
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?
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
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
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
11 matches
Mail list logo