I know I can do something like:
[BelongsTo("Foo", NotNull = true, Lazy = FetchWhen.Immediate)]
public Foo Foo
{
}
And this field will be populated immediately rather than when the
getter is accessed.
However, is it possible to specify whether the fetch is done
immediately when I run the query, such as here:
MyModel[] foo = MyModel.FindAllByProperty("User", someUser);
//Sometimes I want lazy, sometimes I don't..
I believe Rails has some sort of syntax for this, I'm wondering if
Castle ActiveRecord does as well. Thanks!!
Mike
--
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.