Click here to Skip to main content
15,890,438 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak31-Oct-07 7:54
Pawel Krakowiak31-Oct-07 7:54 
GeneralRe: Composed Business Objects Pin
Mark Churchill31-Oct-07 18:09
Mark Churchill31-Oct-07 18:09 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak1-Nov-07 4:16
Pawel Krakowiak1-Nov-07 4:16 
GeneralRe: Composed Business Objects Pin
Mark Churchill1-Nov-07 16:20
Mark Churchill1-Nov-07 16:20 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak1-Nov-07 23:41
Pawel Krakowiak1-Nov-07 23:41 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 1:50
Mark Churchill2-Nov-07 1:50 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak2-Nov-07 2:01
Pawel Krakowiak2-Nov-07 2:01 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 2:57
Mark Churchill2-Nov-07 2:57 
A really simplistic implementation would be to add the caching to your UserManager.Load(object pk). Check the cache, and if its in the cache then return it. Otherwise load the object's data and add it to the cache.

You can use a Dictionary for your cache for prototyping. ASP.Net provides a cache (I think you can safely use this outside of the web framework too) that you can add objects to with a key and an expiry.

You might want to add some way of forcing a reload of an object as well. To be honest though if you are writing your own data layer you are going to have to draw the line for features somewhere. I haven't done a KLOC count on Diamond Binding for a while - but I'm guessing its approaching the millions, and thats not including NHibernate Wink | ;)

Mark Churchill
Director
Dunn & Churchill

GeneralRe: Composed Business Objects Pin
martin_hughes2-Nov-07 7:44
martin_hughes2-Nov-07 7:44 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 16:39
Mark Churchill2-Nov-07 16:39 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak2-Nov-07 10:55
Pawel Krakowiak2-Nov-07 10:55 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 16:24
Mark Churchill2-Nov-07 16:24 
GeneralSuggestions: File Layout Editor Pin
Brady Kelly28-Oct-07 22:45
Brady Kelly28-Oct-07 22:45 
QuestionInformation on .Net Architecture positions Pin
M LN Rao22-Oct-07 22:24
M LN Rao22-Oct-07 22:24 
AnswerRe: Information on .Net Architecture positions Pin
led mike23-Oct-07 9:19
led mike23-Oct-07 9:19 
AnswerRe: Information on .Net Architecture positions Pin
dojohansen29-Oct-07 1:12
dojohansen29-Oct-07 1:12 
QuestionApplication implementations level Add/Removing Controls Pin
prit_mahudha19-Oct-07 18:30
prit_mahudha19-Oct-07 18:30 
AnswerRe: Application implementations level Add/Removing Controls Pin
garyshort20-Oct-07 8:12
garyshort20-Oct-07 8:12 
GeneralRe: Application implementations level Add/Removing Controls Pin
prit_mahudha21-Oct-07 18:21
prit_mahudha21-Oct-07 18:21 
GeneralRe: Application implementations level Add/Removing Controls Pin
garyshort21-Oct-07 22:00
garyshort21-Oct-07 22:00 
GeneralRe: Application implementations level Add/Removing Controls Pin
prit_mahudha21-Oct-07 22:37
prit_mahudha21-Oct-07 22:37 
GeneralRe: Application implementations level Add/Removing Controls Pin
garyshort21-Oct-07 23:31
garyshort21-Oct-07 23:31 
Question[ANN] Call for Speakers - Code Generation 2008 Pin
Mark Dalgarno19-Oct-07 5:16
Mark Dalgarno19-Oct-07 5:16 
QuestionSRS question Pin
Chatura Dilan18-Oct-07 0:40
Chatura Dilan18-Oct-07 0:40 
AnswerRe: SRS question Pin
Ray Cassick18-Oct-07 5:01
Ray Cassick18-Oct-07 5:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.