You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
545 B
27 lines
545 B
namespace SqlSugar
|
|
{
|
|
public class MySqlInsertBuilder : InsertBuilder
|
|
{
|
|
public override string SqlTemplate
|
|
{
|
|
get
|
|
{
|
|
if (IsReturnIdentity)
|
|
{
|
|
return @"INSERT INTO {0}
|
|
({1})
|
|
VALUES
|
|
({2}) ;SELECT LAST_INSERT_ID();";
|
|
}
|
|
else
|
|
{
|
|
return @"INSERT INTO {0}
|
|
({1})
|
|
VALUES
|
|
({2}) ;";
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|