This question is locked. New answers and comments are not allowed.
Hi,
We are using the DSW from OpenAccess ORM v2012.1.301.2 in Visual Sutdio 2010 SP1 to generate a WCF Plain Service and all is working well. We would like to tweak to templates to perform a couple of manual steps so that the developers don't have to. Here are the changes that we are wanting to do:
I've tried editing the .TT files I thought were used to generate each file but not of my changes are showing up. Can you verify that 1) I can make the changes outlined above in the .TT files that are on my local drive and 2) that the following list is the correct file mapping?
Thanks,
Kyle
We are using the DSW from OpenAccess ORM v2012.1.301.2 in Visual Sutdio 2010 SP1 to generate a WCF Plain Service and all is working well. We would like to tweak to templates to perform a couple of manual steps so that the developers don't have to. Here are the changes that we are wanting to do:
- Add the Windows Authentication configuration to the web.config generated file
- Switch the generated service interface files to be a partial interface so that our Domain Method code can be added to the service
- Add our internal data access security logic at the beginning of each of the Read/Create/Update/Delete calls
- Add logic to the parameter names/types to deal generated names that collide with .NET System types and keywords so that we don't have to manually correct after each generation.
I've tried editing the .TT files I thought were used to generate each file but not of my changes are showing up. Can you verify that 1) I can make the changes outlined above in the .TT files that are on my local drive and 2) that the following list is the correct file mapping?
- Assemblers.cs: C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2010\CodeGenerationTemplates\Dto\CSharp\Includes\Specific.ttinclude
- I{ServiceName}Service.cs: C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2010\Extensibility\Dsw\Templates\CSharp\PlainIDataService.tt
- {ServiceName}Service.svc: C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2010\Extensibility\Dsw\Templates\CSharp\PlainDataService.svc.tt
- {ServiceName}Service.svc.cs: C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2010\Extensibility\Dsw\Templates\CSharp\PlainDataService.tt
- Services.cs: C:\Program Files (x86)\Telerik\OpenAccess ORM\dsl2010\CodeGenerationTemplates\Dto\CSharp\Includes\Specific.ttinclude
- web.config: C:\Program Files (x86)\Telerik\OpenAccess ORM\dsw\Templates\WCFEndPoint\vs2010\CSharp\WCFServiceConfiguraiton.t4
Thanks,
Kyle