Browse Source

Added EntitiesToDtos configuration file

Gareth O'Brien 11 years ago
parent
commit
4f5a5368df
1 changed files with 28 additions and 0 deletions
  1. 28 0
      Foghorn.etdtosconfig.xml

+ 28 - 0
Foghorn.etdtosconfig.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntitiesToDtosConfiguration>
+  <GenerateAssemblers>true</GenerateAssemblers>
+  <DtosConfig>
+    <Target project="Foghorn.Core" name="Foghorn.Core" type="Project" />
+    <EDMXName>FoghornModel.edmx</EDMXName>
+    <GenerateFilter all="true" complex="true" entities="true" />
+    <SourceFileHeaderComment />
+    <UseProjectDefaultNamespace>true</UseProjectDefaultNamespace>
+    <SourceNamespace>Foghorn.Core</SourceNamespace>
+    <DtosServiceReady>true</DtosServiceReady>
+    <SourceFileGenerationType>OneSourceFile</SourceFileGenerationType>
+    <SourceFileName>ModelDtos.cs</SourceFileName>
+    <AssociationType>ClassType</AssociationType>
+    <GenerateDtoConstructors>true</GenerateDtoConstructors>
+    <ClassIdentifier use="Suffix" word="Dto" />
+  </DtosConfig>
+  <AssemblersConfig>
+    <Target project="Foghorn.Core" name="Foghorn.Core" type="Project" />
+    <SourceFileHeaderComment />
+    <UseProjectDefaultNamespace>true</UseProjectDefaultNamespace>
+    <SourceNamespace>Foghorn.Core</SourceNamespace>
+    <SourceFileGenerationType>OneSourceFile</SourceFileGenerationType>
+    <SourceFileName>ModelAssemblers.cs</SourceFileName>
+    <IsServiceReady>true</IsServiceReady>
+    <ClassIdentifier use="Suffix" word="Assembler" />
+  </AssemblersConfig>
+</EntitiesToDtosConfiguration>