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].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.