mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-11 02:40:55 +08:00
- 调整 resources 转换成 static class 静态类;#1917
This commit is contained in:
@@ -86,7 +86,7 @@ namespace FreeSql.Custom.MySql
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_tempPrimarys.Any() == false) throw new Exception(CoreStrings.Entity_Must_Primary_Key("fsql.InsertOrUpdate + IfExistsDoNothing + MySql ", _table.CsName));
|
||||
if (_tempPrimarys.Any() == false) throw new Exception(CoreErrorStrings.Entity_Must_Primary_Key("fsql.InsertOrUpdate + IfExistsDoNothing + MySql ", _table.CsName));
|
||||
sql = insert.ToSqlValuesOrSelectUnionAll();
|
||||
if (sql?.StartsWith("INSERT INTO ") == true)
|
||||
sql = $"INSERT IGNORE INTO {sql.Substring(12)}";
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace FreeSql.Custom.MySql
|
||||
public CustomMySqlOnDuplicateKeyUpdate(IInsert<T1> insert)
|
||||
{
|
||||
_mysqlInsert = insert as CustomMySqlInsert<T1>;
|
||||
if (_mysqlInsert == null) throw new Exception(CoreStrings.S_Features_Unique("OnDuplicateKeyUpdate", "Odbc/MySql"));
|
||||
if (_mysqlInsert == null) throw new Exception(CoreErrorStrings.S_Features_Unique("OnDuplicateKeyUpdate", "Odbc/MySql"));
|
||||
if (_mysqlInsert._noneParameterFlag == "c") _mysqlInsert._noneParameterFlag = "cu";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user