mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update NANA
This commit is contained in:
parent
1c25d6eef8
commit
7e5e30c99c
@ -9,8 +9,9 @@ namespace GbaseTest
|
||||
{
|
||||
//这行代码扔程序启动时
|
||||
InstanceFactory.CustomAssemblies = new System.Reflection.Assembly[] {
|
||||
typeof(SqlSugar.HANAConnector.HANAProvider).Assembly };
|
||||
typeof(SqlSugar.HANAConnector.HANAProvider).Assembly };
|
||||
|
||||
//创建DB
|
||||
var db = new SqlSugarClient(new ConnectionConfig()
|
||||
{
|
||||
ConnectionString = "DRIVER={HANAQAS64};SERVERNODE=172.16.10.12:32015;UID=WLH_BPM_TASK;PWD=BPM4pass1;DATABASENAME=Q00",
|
||||
@ -25,8 +26,7 @@ namespace GbaseTest
|
||||
Console.WriteLine(x);
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
db.Open();
|
||||
db.Close();
|
||||
@ -35,6 +35,9 @@ namespace GbaseTest
|
||||
|
||||
var list = db.Queryable<DF_MM_POINFO>().Where(IT => IT.ID > 0).ToList();
|
||||
|
||||
int count = 0;
|
||||
var listPage = db.Queryable<DF_MM_POINFO>().Where(IT => IT.ID > 0).ToPageList(2, 2, ref count);
|
||||
|
||||
Console.WriteLine("Hello, World!");
|
||||
}
|
||||
public class DF_MM_POINFO
|
||||
|
Loading…
Reference in New Issue
Block a user