Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Jul 26, 2017
1 parent 23d9bbe commit 347a19d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Docs/Codematic.Template/SmartSqlMapForMS-SQL.cmt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
VALUES
<# for (int i = 1; i < host.Fieldlist.Count; ++i) { #><# if (i == 1) { #>(@<#= host.Fieldlist[i].ColumnName.ToString() #><# } else { #>
,@<#= host.Fieldlist[i].ColumnName.ToString() #><# } #><# } #>)
;Select @@IDENTITY
;Select Scope_Identity();
</Statement>

<!--删除-->
Expand Down
2 changes: 1 addition & 1 deletion Docs/Codematic.Template/SmartSqlMapForMySql.cmt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
VALUES
<# for (int i = 1; i < host.Fieldlist.Count; ++i) { #><# if (i == 1) { #>(?<#= host.Fieldlist[i].ColumnName.ToString() #><# } else { #>
,?<#= host.Fieldlist[i].ColumnName.ToString() #><# } #><# } #>)
;Select LAST_INSERT_ID()
;Select Last_Insert_Id();
</Statement>

<!--删除-->
Expand Down
3 changes: 1 addition & 2 deletions Docs/Xml.Template/T_Table.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
([Name])
VALUES
(@Name)
;
Select @@IDENTITY
;Select Scope_Identity();
</Statement>
<Statement Id="Delete">
Delete T_Test
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
(Name)
VALUES
(@Name)
;Select @@IDENTITY
;Select Scope_Identity();
</Statement>
<!--删除-->
<Statement Id="Delete">
Expand Down
2 changes: 1 addition & 1 deletion SmartSql.Tests/Maps/T_Test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
(Name)
VALUES
(@Name)
;Select @@IDENTITY
;Select Scope_Identity();
</Statement>

<!--删除-->
Expand Down

0 comments on commit 347a19d

Please sign in to comment.