diff --git a/Src/Asp.NetCore2/HANATest/Program.cs b/Src/Asp.NetCore2/HANATest/Program.cs index 58b9bbaa8..37d3d3661 100644 --- a/Src/Asp.NetCore2/HANATest/Program.cs +++ b/Src/Asp.NetCore2/HANATest/Program.cs @@ -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().Where(IT => IT.ID > 0).ToList(); + int count = 0; + var listPage = db.Queryable().Where(IT => IT.ID > 0).ToPageList(2, 2, ref count); + Console.WriteLine("Hello, World!"); } public class DF_MM_POINFO