That would work, but it's new in 3.x (trunk)

    Diego


On Fri, Jul 16, 2010 at 00:37, Mohamed Meligy <[email protected]> wrote:

> I think you can make the "Data" property itself lazy. This will solve your
> 2-level lazy issue. One level is "Attachments" property on "Document" class,
> and another is "Data" property on "Attachment" class.
>
> --
> *Mohamed Meligy*
> Senior Developer, Microsoft Technologies - Technical Delivery Group
> Injazat Data Systems
> P.O. Box: 8230, Abu Dhabi, U.A.E. (*GMT+4*)**
>
> Direct:     +971   2 4045385
> Mobile:    +971 50 2623624, +971 55 2017 621
> Email:     [email protected]
> Weblog:  *http://gurustop.net*
>
>
>
> On Fri, Jul 16, 2010 at 7:20 AM, alexey_baranov <[email protected]> wrote:
>
>> Hi!
>>
>> I'm thinking about attachments to my documents. Attachments are up to
>> 10 Gb size. First of all I created a new Class:
>>
>> Class Attachment{
>>    int Id;
>>    string FileName;
>>    string MimeType;
>>    string Data;            //mapped to BLOB field / very large!
>> }
>>
>> Class Document{
>>    int Id;
>>
>>    ...   ...
>>
>>    IList<Attachment> Attachments;
>> }
>>
>>
>> And create one-to-many relationship between Owner and his Attachments.
>> My problem is if I try to get the FileNames of Attachments (for
>> example for UI form) then all fields including very large Data fields
>> loading from database.
>>
>> How can I make TWO LAVEL LAZY LOADING of Attachments collection?
>> First level- load FileNames and MimeTypes of all Attachments when ask
>> collection first time.
>> Second level - load EXACTLY ONE Data field when first time ask it.
>>
>> Thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to