mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
-
This commit is contained in:
21
Src/Asp.NetCore2/SqlSeverTest/NugetTest/Program.cs
Normal file
21
Src/Asp.NetCore2/SqlSeverTest/NugetTest/Program.cs
Normal file
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user