Xomega
»
Xomega Generators
»
Service Layer
»
How to generate WCF service contracts
|
To generate an WCF service contracts from your Xomega service model you can perform the following steps. - Open the Properties tab of the WCF Service Contracts generator in the Service 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 services. You can also use the {Module/} placeholder to place services in different folders based on the modules of the corresponding objects, for example ../MyProject.Services/{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.
- Run the generator and add the generated files to your project as necessary.
- Review and build the project to make sure the files were generated properly and without errors.
|
|
|
|
Xomega
»
Xomega Generators
»
Service Layer
»
How to generate WCF service contracts
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.