Update MySqlT4

This commit is contained in:
sunkaixuan 2017-09-13 14:38:43 +08:00
parent 7fef9b19cb
commit 93b5c75ff3
4 changed files with 46 additions and 0 deletions

View File

@ -68,6 +68,12 @@
<Compile Include="PerformanceTesting\SqlSugarPerformance.cs" /> <Compile Include="PerformanceTesting\SqlSugarPerformance.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="T4\SugarTemplate1.cs" />
<Compile Include="T4\SugarTemplate2.cs">
<DependentUpon>SugarTemplate.tt</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="UnitTest\DataTest.cs" /> <Compile Include="UnitTest\DataTest.cs" />
<Compile Include="UnitTest\Delete.cs" /> <Compile Include="UnitTest\Delete.cs" />
<Compile Include="UnitTest\ExpressionTest\Field.cs" /> <Compile Include="UnitTest\ExpressionTest\Field.cs" />
@ -98,6 +104,13 @@
<ItemGroup> <ItemGroup>
<Content Include="DataBase\sqlsugar4xtest.sql" /> <Content Include="DataBase\sqlsugar4xtest.sql" />
<Content Include="OtherDll\SyntacticSugar.dll" /> <Content Include="OtherDll\SyntacticSugar.dll" />
<Content Include="T4\SugarTemplate.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>SugarTemplate2.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -0,0 +1,31 @@
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Xml.Linq" #>
<#@ assembly name="System.Data" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="SqlSugar" #>
<#@ import namespace="Newtonsoft.Json" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Web" #>
<#@ assembly name="$(SolutionDir)\SqlSugar\References\Newtonsoft.Json.dll" #>
<#@ assembly name="$(SolutionDir)\SqlSugar\bin\Debug\SqlSugar.dll" #>
<#@ assembly name="$(SolutionDir)\SqlSugar\bin\Debug\MySql.Data.dll" #>
<#
//CTRL+S将会执行该文件的代码自动作生实体
//当前项目目录
string projectDir = Host.ResolveAssemblyReference("$(ProjectDir)");
//解决方案目录
string solutionDir = Host.ResolveAssemblyReference("$(SolutionDir)");
var db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = "server=localhost;Database=SqlSugar4xTest;Uid=root;Pwd=root", DbType = DbType.MySql, IsAutoCloseConnection = true });
db.DbFirst.CreateClassFile("c:\\MySqlT4");
#>

View File

@ -0,0 +1 @@


View File

@ -0,0 +1 @@