[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