Update Nuget

This commit is contained in:
610262374@qq.com 2018-12-17 19:13:46 +08:00
parent b5693a7058
commit dd7bd5f9a7
3 changed files with 21 additions and 1 deletions

View File

@ -32,6 +32,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="SqlSugar, Version=4.9.7.3, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\sqlSugar.4.9.7.3\lib\SqlSugar.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
@ -44,5 +47,8 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,4 +1,5 @@
using System;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -9,6 +10,15 @@ namespace NugetTest
{
static void Main(string[] args)
{
var db = new SqlSugarClient(new ConnectionConfig()
{
ConnectionString = "server=.;uid=sa;pwd=@jhl85661501;database=SqlSugar4XTest",
IsAutoCloseConnection = true,
DbType = DbType.SqlServer
});
InstanceFactory.RemoveCache();
var list = db.Ado.GetInt("select 1");
Console.WriteLine("Hello World!");
}
}
}

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="sqlSugar" version="4.9.7.3" targetFramework="net40" />
</packages>