Update NANA

This commit is contained in:
sunkaixuan 2025-03-10 16:26:10 +08:00
parent 1c25d6eef8
commit 7e5e30c99c

View File

@ -11,6 +11,7 @@ namespace GbaseTest
InstanceFactory.CustomAssemblies = new System.Reflection.Assembly[] { InstanceFactory.CustomAssemblies = new System.Reflection.Assembly[] {
typeof(SqlSugar.HANAConnector.HANAProvider).Assembly }; typeof(SqlSugar.HANAConnector.HANAProvider).Assembly };
//创建DB
var db = new SqlSugarClient(new ConnectionConfig() var db = new SqlSugarClient(new ConnectionConfig()
{ {
ConnectionString = "DRIVER={HANAQAS64};SERVERNODE=172.16.10.12:32015;UID=WLH_BPM_TASK;PWD=BPM4pass1;DATABASENAME=Q00", ConnectionString = "DRIVER={HANAQAS64};SERVERNODE=172.16.10.12:32015;UID=WLH_BPM_TASK;PWD=BPM4pass1;DATABASENAME=Q00",
@ -27,7 +28,6 @@ namespace GbaseTest
}); });
db.Open(); db.Open();
db.Close(); db.Close();
@ -35,6 +35,9 @@ namespace GbaseTest
var list = db.Queryable<DF_MM_POINFO>().Where(IT => IT.ID > 0).ToList(); 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!"); Console.WriteLine("Hello, World!");
} }
public class DF_MM_POINFO public class DF_MM_POINFO