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.
23 lines
624 B
23 lines
624 B
7 years ago
|
using System;
|
||
|
using SqlSugar;
|
||
|
namespace NugetTest
|
||
|
{
|
||
|
class Program
|
||
|
{
|
||
|
static void Main(string[] args)
|
||
|
{
|
||
|
var db = new SqlSugarClient(new ConnectionConfig() {
|
||
|
ConnectionString=Config.ConnectionString,
|
||
7 years ago
|
IsAutoCloseConnection=true,
|
||
5 years ago
|
DbType=DbType.SqlServer
|
||
7 years ago
|
});
|
||
|
var list = db.Ado.GetInt("select 1");
|
||
|
Console.WriteLine("Hello World!");
|
||
|
}
|
||
|
public class Config
|
||
|
{
|
||
5 years ago
|
public static string ConnectionString = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST";
|
||
7 years ago
|
}
|
||
|
}
|
||
|
}
|