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

Notification

Icon
Error

How to generate data objects for the View Models
xomega
#1 Posted : Tuesday, September 4, 2012 6:13:23 PM(UTC)
xomega



After you define your UI data objects based on the service operations, you can easily generate the corresponding Xomega Framework data objects using the following steps.
  1. Open the Properties tab of the Xomega Data Objects generator in the Presentation Layer 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 objects. 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.Objects/{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.

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