home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Topic: I'm looking for a lazy loading solution in c#. The idea is, to have a kind of object factory, which will be responsible for creating my entity objects. When a property of such an object is accesed and it is not yet loaded...
Reply Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2063
Discussions: 184,913, Posts: 2,207,512, Members: 227,630
Old January 6th, 2007, 12:56 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 9
Object Factories with Lazy Loading in C#

I'm looking for a lazy loading solution in c#.
The idea is, to have a kind of object factory, which will be responsible for creating my entity objects.
When a property of such an object is accesed and it is not yet loaded, the factory
(or a magic watcher) will be able to pause the execution flow for a while (maybe that step is not necessary)
load the missing data (don't know how to specify, from where to load that data----maybe via attributes) and
return to the flow.
My entity objects, do not have a possibility to load the missing data by themselves, because they
are only data containers having private members, which are accessible via public properties.
These objects need to be filled with their data from outside, and therefore many lazy loading solutions
won't work here.
Maybe anyone of you knows the solution for my problem?
Thank You in advance!

Greetz!

cyberjoe

cyberjoe2 is offline   Reply With Quote
Old January 6th, 2007, 01:00 PM     #2 (permalink)
Anime Otaku
 
RobRich's Avatar
 
Join Date: Oct 2001
Location: Tampa, FL USA
Posts: 104,169
Blog Entries: 15
Thread moved to programming forum. :)

RobRich is online now   Reply With Quote
Old January 9th, 2007, 03:50 PM     #3 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 421
Look here


Iturea is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Here in the US, how many people are really lazy? no1_vern IMO Community 21 July 25th, 2006 07:19 PM
Call me lazy draboo Distributed Computing 12 March 31st, 2005 11:38 PM
lazy spammers JacobM5727 General Tech Discussion 5 February 7th, 2004 10:38 PM
RH 2.6 kernel RPMS (for the lazy) samwichse Linux and Unix 3 September 22nd, 2003 10:26 PM
Passing a class object variable to another object variable ILC Webmastering and Programming 1 March 1st, 2002 01:10 AM

Most Active Discussions
Is It Just Me? (14175)
First seal species to become extinc.. (7)
Misery Loves Company... (1176)
Official World of Warcraft Thread!! (4228)
Windows setup not responding!!! PLe.. (6)
Asus P5PE-VM fails to boot (5)
Real and advertised hard drive size.. (31)
Adding trouble in Excel (7)
Graphics card - Please help! (12)
Recent Discussions
No Signal on Monitor after inst.. (3)
Motherboard for server (3)
2 screens only 1 is tiny! (0)
Folder Chat: For the love of SP.. (28)
Turn on WoW and computer shuts .. (10)
Adding trouble in Excel (7)
I found that connector you were.. (0)
msn messenger contact adding to.. (0)
DVD Recording problems? (0)
Karma's Cleaning Out Sale! (4)
Saphire Radeon 4850 HD fs. (0)
9800GTX 512meg (0)


All times are GMT -4. The time now is 09:19 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28