diff --git a/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/Demo/Demo0_SqlSugarClient.cs index 8ed1c8415..b65441a18 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/DmOrmTest/Demo/Demo0_SqlSugarClient.cs @@ -103,9 +103,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1", FieldValueConvertFunc=it=>Convert.ToInt32(it) });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc); diff --git a/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/Demo/Demo0_SqlSugarClient.cs index 45cfa3f97..aa5b1015a 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/KdbndpTest/Demo/Demo0_SqlSugarClient.cs @@ -103,9 +103,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1", FieldValueConvertFunc=it=>Convert.ToInt32(it) });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc); diff --git a/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/Demo/Demo0_SqlSugarClient.cs index 568bb37d6..841d5a137 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/MySqlTest/Demo/Demo0_SqlSugarClient.cs @@ -103,9 +103,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1" });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc); diff --git a/Src/Asp.NetCore2/SqlSeverTest/OracleTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/OracleTest/Demo/Demo0_SqlSugarClient.cs index c8ff54bc5..807b6524a 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/OracleTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/OracleTest/Demo/Demo0_SqlSugarClient.cs @@ -110,9 +110,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1" });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc); diff --git a/Src/Asp.NetCore2/SqlSeverTest/PgSqlTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/PgSqlTest/Demo/Demo0_SqlSugarClient.cs index ed581f597..3e2848508 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/PgSqlTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/PgSqlTest/Demo/Demo0_SqlSugarClient.cs @@ -103,9 +103,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1", FieldValueConvertFunc=it=>Convert.ToInt32(it) });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc); diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest/Demo/Demo0_SqlSugarClient.cs index 3b66869af..73f7f4634 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSeverTest/Demo/Demo0_SqlSugarClient.cs @@ -104,9 +104,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1" });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc); diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/Demo/Demo0_SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/Demo/Demo0_SqlSugarClient.cs index ac45ea99f..03e9141b4 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/Demo/Demo0_SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqliteTest/Demo/Demo0_SqlSugarClient.cs @@ -103,9 +103,9 @@ namespace OrmTest var data4 = orderDb.GetSingle(it => it.Id == 1); var p = new PageModel() { PageIndex = 1, PageSize = 2 }; var data5 = orderDb.GetPageList(it => it.Name == "xx", p); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); var data6 = orderDb.GetPageList(it => it.Name == "xx", p, it => it.Name, OrderByType.Asc); - Console.Write(p.PageCount); + Console.Write(p.TotalCount); List conModels = new List(); conModels.Add(new ConditionalModel() { FieldName = "id", ConditionalType = ConditionalType.Equal, FieldValue = "1" });//id=1 var data7 = orderDb.GetPageList(conModels, p, it => it.Name, OrderByType.Asc);