mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update demo
This commit is contained in:
parent
59203d1d18
commit
14a86dcf62
@ -4,6 +4,7 @@ using SqlSugar.DbConvert;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
|
|
||||||
|
//OracleTest();
|
||||||
ServerTest();
|
ServerTest();
|
||||||
SqliteTest();
|
SqliteTest();
|
||||||
MyTest();
|
MyTest();
|
||||||
@ -147,6 +148,21 @@ static void SqliteTest()
|
|||||||
var d1 = new UnitDate01231().dateOnly;
|
var d1 = new UnitDate01231().dateOnly;
|
||||||
var d2 = new UnitDate01231().timeOnly;
|
var d2 = new UnitDate01231().timeOnly;
|
||||||
}
|
}
|
||||||
|
static void OracleTest()
|
||||||
|
{
|
||||||
|
var db = new SqlSugarClient(new ConnectionConfig()
|
||||||
|
{
|
||||||
|
DbType = DbType.Oracle,
|
||||||
|
IsAutoCloseConnection= true,
|
||||||
|
ConnectionString = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=150.158.37.115)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User Id= ;Password=Qdies123test;Pooling='true';Max Pool Size=150"
|
||||||
|
},
|
||||||
|
it =>
|
||||||
|
{
|
||||||
|
it.Aop.OnLogExecuting = (s, p) => Console.WriteLine(s, p);
|
||||||
|
});
|
||||||
|
List< (int id, string name)> x = db.SqlQueryable<object>("select id,name from \"ORDER\"")
|
||||||
|
.Select<(int id, string name)>().ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public class Unitadfafa
|
public class Unitadfafa
|
||||||
|
Loading…
Reference in New Issue
Block a user