diff --git a/OrmTest/Models/Student.cs b/OrmTest/Models/Student.cs index a26904b4f..d0d0c4721 100644 --- a/OrmTest/Models/Student.cs +++ b/OrmTest/Models/Student.cs @@ -14,7 +14,7 @@ namespace OrmTest.Models { [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")] public int Id { get; set; } - public int SchoolId { get; set; } + public int? SchoolId { get; set; } public string Name { get; set; } public DateTime? CreateTime { get; set; } [SugarColumn(IsIgnore=true)] diff --git a/SqlSugar/Abstract/Core/SqlBuilder/DMLBuilder/InsertBuilder.cs b/SqlSugar/Abstract/Core/SqlBuilder/DMLBuilder/InsertBuilder.cs index 29b39ab66..eeee576ff 100644 --- a/SqlSugar/Abstract/Core/SqlBuilder/DMLBuilder/InsertBuilder.cs +++ b/SqlSugar/Abstract/Core/SqlBuilder/DMLBuilder/InsertBuilder.cs @@ -130,7 +130,7 @@ namespace SqlSugar ++i; } pageIndex++; - batchInsetrSql.Append("\r\nGO\r\n"); + batchInsetrSql.Append("\r\n;\r\n"); } return batchInsetrSql.ToString(); }