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

Notification

Icon
Error

How to generate an XML file with static enumerations
xomega
#1 Posted : Wednesday, October 17, 2012 5:35:44 PM(UTC)
xomega



Xomega provides a convenient way to generate an XML file that contains all static enumerations defined in the model, which you can use to populate a lookup cache in the Xomega Framework. This will effectively make your model enumerations instantly accessible to your application code.

The following steps describe how to generate an XML file with static enumerations.
  1. Open the Properties tab of the Enumeration Data XML generator in the Static Data folder.
  2. Set the Output Path parameter to where you want the generated file to go, for example ../MyProject.Client.Services/enumerations.xml.
  3. If you want the generator to automatically add the generated file to one of your projects as an embedded resource, then you need to specify the path to the project file in the Add To Project parameter.
  4. If you want to additionally add a link to the generated file into one of the projects as an embedded resource, 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 file into that project to use the same code base.
  5. If you need to link the generated file into another project as described in the previous step, you can also specify a virtual folder in the project structure to group the linked file by setting the Link Path attribute.
  6. Run the generator and add or link the generated file to your project as necessary.
  7. Add code to load that generated XML file into the look up cache and run the application to make sure the file was generated properly.

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.

Copyright © 2009-2022 Xomega.Net. All rights reserved.