For me, lazy loading with medium trust is like swimming without getting wet.

-Markus

2009/7/31 Zdeslav Vojkovic <[email protected]>

> just be careful of running under 'Medium Trust':
>
>
> http://forum.castleproject.org/viewtopic.php?t=4792&sid=3c497e5ca8f0fabc027925e7170a69fb
>
> http://blechie.com/WPierce/archive/2008/02/17/Lazy-Loading-with-nHibernate-Under-Medium-Trust.aspx
> http://www.patrickgannon.net/
>
>
> On Fri, Jul 31, 2009 at 11:17 AM, Markus Zywitza <[email protected]
> > wrote:
>
>> In the case of BelongsTo, your only option is to make the referenced type
>> lazy by using [ActiveRecord(Lazy=true)].
>>
>> -Markus
>>
>> 2009/7/30 Diego Dias <[email protected]>
>>
>>  But in this case of the BelongsTo What I do?
>>> I think in something with in the LINQ ADO where have the attribute "
>>> DeferredLoadingEnabled" that say to framework not load anything
>>> relationship and when I need load relationship then I say to framework what
>>> relationship I want load. I can do this in AR?
>>>
>>> Thank's
>>>
>>> 2009/7/30 Zdeslav Vojkovic <[email protected]>
>>>
>>> Do you mean lazy loading?
>>>> see here:
>>>> http://www.castleproject.org/activerecord/documentation/trunk/usersguide/lazy.html
>>>>
>>>> please note that enabling lazy load on an activerecord type requires
>>>> marking members as virtual, and also has some implications on running a web
>>>> app in medium trust
>>>>
>>>>
>>>> On Thu, Jul 30, 2009 at 12:04 AM, Diego Dias <[email protected]>wrote:
>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> I live in Brazil and I’m programmer C# + AR. I’m with a problem, in my
>>>>> model exists some types of relationship, like "BelongsTo" and
>>>>> "HasMany", but I want load this relationships only sometimes. How I do
>>>>> it?
>>>>>
>>>>> sorry the errors in the my english, I'm learning.
>>>>>
>>>>> Thank’s
>>>>>
>>>>>
>>>>>
>>>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to