2018-12-17 19:13:46 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
2018-12-17 19:04:55 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace NugetTest
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
2018-12-17 19:13:46 +08:00
|
|
|
|
var db = new SqlSugarClient(new ConnectionConfig()
|
|
|
|
|
{
|
2020-03-31 16:47:15 +08:00
|
|
|
|
ConnectionString = "server=.;uid=sa;pwd=haosql;database=SqlSugar4XTest",
|
2018-12-17 19:13:46 +08:00
|
|
|
|
IsAutoCloseConnection = true,
|
|
|
|
|
DbType = DbType.SqlServer
|
|
|
|
|
});
|
|
|
|
|
InstanceFactory.RemoveCache();
|
|
|
|
|
var list = db.Ado.GetInt("select 1");
|
|
|
|
|
Console.WriteLine("Hello World!");
|
2018-12-17 19:04:55 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|