Browse Source

-

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
f1c6d73503
  1. 2
      OrmTest/Models/Student.cs
  2. 2
      SqlSugar/Abstract/Core/SqlBuilder/DMLBuilder/InsertBuilder.cs

2
OrmTest/Models/Student.cs

@ -14,7 +14,7 @@ namespace OrmTest.Models
{ {
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")] [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "ID")]
public int Id { get; set; } public int Id { get; set; }
public int SchoolId { get; set; } public int? SchoolId { get; set; }
public string Name { get; set; } public string Name { get; set; }
public DateTime? CreateTime { get; set; } public DateTime? CreateTime { get; set; }
[SugarColumn(IsIgnore=true)] [SugarColumn(IsIgnore=true)]

2
SqlSugar/Abstract/Core/SqlBuilder/DMLBuilder/InsertBuilder.cs

@ -130,7 +130,7 @@ namespace SqlSugar
++i; ++i;
} }
pageIndex++; pageIndex++;
batchInsetrSql.Append("\r\nGO\r\n"); batchInsetrSql.Append("\r\n;\r\n");
} }
return batchInsetrSql.ToString(); return batchInsetrSql.ToString();
} }

Loading…
Cancel
Save