Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How to generate Lookup Cache Loaders
xomega
#1 Posted : Wednesday, October 17, 2012 4:27:10 PM(UTC)
xomega



Lookup Cache Loaders are Xomega Framework classes that can load one or multiple lookup tables into a lookup cache when the table is not found in the cache. They should be registered with Xomega Framework and can be invoked synchronously or asynchronously by the framework.

Xomega provides an easy way to generate a set of lookup cache loaders based on dynamic enumerations defined in the model for service operations that return the data for the lookup tables. This allows configuring lists of values for UI data properties in a totally flexible and customizable way an extremely simple task. The following steps describe how to generate the lookup cache loaders.
  1. Open the Properties tab of the DB Cache Loaders generator in the Static Data folder.
  2. Set the Output Path parameter to where you want the generated classes to go. Use the {File} placeholder to indicate the location of individual cache loaders. You can also use the {Module/} placeholder to place the classes in different folders based on the modules of the corresponding objects, for example ../MyProject.Client.Services/CacheLoaders/{Module/}_{File}.cs. We recommend using a specific naming convention for the generated files, such as ending them with .gen.cs or starting with an underscore, which would keep them separate from the non-generated files.
  3. If you want the generator to automatically add the generated files to one of your projects, then you need to specify the path to the project file in the Add To Project parameter.
  4. If you want to additionally add links to the generated files into one of the projects, then you can set the Link Into Project attribute to point to that project's file. This is useful for Silverlight solutions, where you cannot simply reference a project that is not built for Silverlight from another Silverlight project, but you can link the files into that project to use the same code base.
  5. If you need to link the generated files into another project as described in the previous step, you can also specify a virtual folder in the project structure to group the linked files by setting the Link Path attribute.
  6. Run the generator and add or link the generated files to your project as necessary.
  7. Review and build the project to make sure the files were generated properly and without errors.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.