From e309fade001b4ae2ab4e085bd7f3e5e9b778ae67 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 6 Nov 2017 11:41:44 +0800 Subject: [PATCH] - --- .../SqlSeverTest/NugetTest/NugetTest.csproj | 12 +++++++++++ .../SqlSeverTest/NugetTest/Program.cs | 21 +++++++++++++++++++ .../SqlSeverTest/SqlSeverTest.sln | 8 ++++++- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Src/Asp.NetCore2/SqlSeverTest/NugetTest/NugetTest.csproj create mode 100644 Src/Asp.NetCore2/SqlSeverTest/NugetTest/Program.cs diff --git a/Src/Asp.NetCore2/SqlSeverTest/NugetTest/NugetTest.csproj b/Src/Asp.NetCore2/SqlSeverTest/NugetTest/NugetTest.csproj new file mode 100644 index 000000000..28c1e0944 --- /dev/null +++ b/Src/Asp.NetCore2/SqlSeverTest/NugetTest/NugetTest.csproj @@ -0,0 +1,12 @@ + + + + Exe + netcoreapp2.0 + + + + + + + diff --git a/Src/Asp.NetCore2/SqlSeverTest/NugetTest/Program.cs b/Src/Asp.NetCore2/SqlSeverTest/NugetTest/Program.cs new file mode 100644 index 000000000..5dcd87165 --- /dev/null +++ b/Src/Asp.NetCore2/SqlSeverTest/NugetTest/Program.cs @@ -0,0 +1,21 @@ +using System; +using SqlSugar; +namespace NugetTest +{ + class Program + { + static void Main(string[] args) + { + var db = new SqlSugarClient(new ConnectionConfig() { + ConnectionString=Config.ConnectionString, + IsAutoCloseConnection=true + }); + var list = db.Ado.GetInt("select 1"); + Console.WriteLine("Hello World!"); + } + public class Config + { + public static string ConnectionString = "Database=SqlSugar4xTest;Data Source=127.0.0.1;User Id=root;Password=root;pooling=false;CharSet=utf8;port=3306"; + } + } +} diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest.sln b/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest.sln index 4ba2afcbc..9022a349f 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest.sln +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest.sln @@ -11,7 +11,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MySqlTest", "MySqlTest\MySq EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SqliteTest", "SqliteTest\SqliteTest.csproj", "{AE73F090-22EC-49E4-AFEE-879FFFA292EC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OracleTest", "OracleTest\OracleTest.csproj", "{3247B9CB-C92D-4AE3-8A35-3131AB2BD406}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OracleTest", "OracleTest\OracleTest.csproj", "{3247B9CB-C92D-4AE3-8A35-3131AB2BD406}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NugetTest", "NugetTest\NugetTest.csproj", "{E76C6F9B-BA90-4A5A-94D9-D3D48CBB6AA3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -39,6 +41,10 @@ Global {3247B9CB-C92D-4AE3-8A35-3131AB2BD406}.Debug|Any CPU.Build.0 = Debug|Any CPU {3247B9CB-C92D-4AE3-8A35-3131AB2BD406}.Release|Any CPU.ActiveCfg = Release|Any CPU {3247B9CB-C92D-4AE3-8A35-3131AB2BD406}.Release|Any CPU.Build.0 = Release|Any CPU + {E76C6F9B-BA90-4A5A-94D9-D3D48CBB6AA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E76C6F9B-BA90-4A5A-94D9-D3D48CBB6AA3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E76C6F9B-BA90-4A5A-94D9-D3D48CBB6AA3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E76C6F9B-BA90-4A5A-94D9-D3D48CBB6AA3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE