Adding a custom t4 template to the DDL generation template drop-down list

I know that I can add a template to the folder

C: \ Program Files (x86) \ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Entity Infrastructure Tools \ DBGen

to make it visible in the dropdown list of DDL generation templates, but then I need to distribute the template to my team members so that they can add the template to the same folder.

I was hoping that I could achieve the same result by adding a template to the VS 2012 solution somehow and making it visible in the same drop-down list

Do you know a way to achieve this? I am using VS 2012 and using the Model First approach to create a database

+5
source share
2 answers

, , . edmx , , edmx ( ). , t4 (, , edmx, ). t4 . ( ), t4. , edmx ( , ):

  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
    <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
      <edmx:Options>
        <DesignerInfoPropertySet>
          <DesignerProperty Name="DDLGenerationTemplate" Value="SSDLToSQLite3.tt" />
+1

datetime2. , , .edmx, , . , , , XML edmx, , .

0

All Articles