|
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. - Open the Properties tab of the Xomega Data Objects generator in the Presentation Layer folder.
- 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.
- 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.
- 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.
- 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.
- Run the generator and add or link the generated files to your project as necessary.
- Review and build the project to make sure the files were generated properly and without errors.
|