You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.2 KiB

2 years ago
  1. <#@ template debug="false" hostspecific="true" language="C#" #>
  2. <#@ import namespace="System.Collections.Generic" #>
  3. <#@ assembly name="System.Core" #>
  4. <#@ assembly name="System.Xml" #>
  5. <#@ assembly name="System.Xml.Linq" #>
  6. <#@ assembly name="System.Data" #>
  7. <#@ import namespace="System.Linq" #>
  8. <#@ import namespace="System.Text" #>
  9. <#@ import namespace="System.Collections.Generic" #>
  10. <#@ import namespace="SqlSugar" #>
  11. <#@ import namespace="Newtonsoft.Json" #>
  12. <#@ import namespace="System.IO" #>
  13. <#@ import namespace="System.Web" #>
  14. <#@ assembly name="$(SolutionDir)\SqlSugar\References\Newtonsoft.Json.dll" #>
  15. <#@ assembly name="$(SolutionDir)\SqlSugar\bin\Debug\SqlSugar.dll" #>
  16. <#
  17. //CTRL+S将会执行该文件的代码,自动作生实体
  18. //当前项目目录
  19. string projectDir = Host.ResolveAssemblyReference("$(ProjectDir)");
  20. //解决方案目录
  21. string solutionDir = Host.ResolveAssemblyReference("$(SolutionDir)");
  22. var db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = "server=192.168.1.105;database=EURO;uid=sa;pwd=admin123!@#;Max Pool Size=5120;Min Pool Size=5;connect timeout=20;", DbType = DbType.SqlServer, IsAutoCloseConnection = true });
  23. db.DbFirst.CreateClassFile("c:\\T4");
  24. #>