The cache is not enough ? (cache AKA second-level-cache)
2010/1/27 chris <[email protected]>
> Hi,
> I'm currently working on a Desktop Application with the following
> behaviour.
>
> 1) List of items displayed to user
> 2) User double clicks, new session starts and loads the relevant
> object and it's graph.
>
> The object has a property that links to another object, with a
> relatively complicated object graph - which would be 10-15 tables to
> query.
>
> public class ObjectToEdit {
> //fields
> //complex object
> public virtual ComplexObject ComplexObject {get; set;}
> }
>
> Across the system, there will be a small number of ComplexObjects, so
> I would like to have these Cached within the system somewhere, either
> on a Lazy basis, or on Startup - not important.
>
> Is there a way I can do this without changing ObjectToEdit? I have
> several thoughts, but not sure which one to start with.
> 1) When creating the "edit" session, add the complex object graph into
> the session so it is in the EntityCache
> 2) Create a custom proxy for the ComplexObject that hits the cache DB
> 3) Something interceptor based?
>
> If anyone could make recommendations, I would really appreciate it.
>
> Thanks,
> Chris
>
> --
> 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.
>
>
--
Fabio Maulo
--
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.