I'm implementing an EntityCollection cache for my lookup table.
My EntityCollectionCache class will hold a private dictionary of EntityType and EntityCollection2 reference.
EntityCollectionCache will have a method for returning a new instance of an EntityView2 based on one of the internally cached EntityCollection2.
So I will have multiple EntityView2 instance based on the same EntityCollection2 instance.
These EntityView2 will be mainly used in ad WinForm databinding scenario.
The main purpose for the cached data is to fill different dropdown combo (the cached data are lookup table). So the cached data will be read-only.
Is this OK?
It's even possible that these EntityView2 instance, based n the same EntityCollection2 instance, are used on different thread (each thread will have it's own instance of EntityView2)
Is this OK in this a mutithread scenario? (only one thread will control the GUI, but maybe I will have concurrent thread doing some background elaboration)
some info:
*) .Net 2.0, VisualStudio 2005
*) LLBLGenPro 2.0.0.0 Final (March 21st, 2007)
*) Code generation: Adapter/VB.Net 2.0/Standard Templates+CommonBaseClass
*) LLBLGenPro Lib 2.0.07.0416
*) Database: Access2k / SQL Server 2k