public OdbcMySqlOnDuplicateKeyUpdate(IInsert <T1> insert)
 {
     _mysqlInsert = insert as OdbcMySqlInsert <T1>;
     if (_mysqlInsert == null)
     {
         throw new Exception("OnDuplicateKeyUpdate 是 FreeSql.Provider.Odbc/MySql 特有的功能");
     }
 }
Пример #2
0
 public OdbcMySqlOnDuplicateKeyUpdate(IInsert <T1> insert)
 {
     _mysqlInsert = insert as OdbcMySqlInsert <T1>;
     if (_mysqlInsert == null)
     {
         throw new Exception("OnDuplicateKeyUpdate 是 FreeSql.Provider.Odbc/MySql 特有的功能");
     }
     if (_mysqlInsert._noneParameterFlag == "c")
     {
         _mysqlInsert._noneParameterFlag = "cu";
     }
 }
Пример #3
0
 public OdbcMySqlOnDuplicateKeyUpdate(IInsert <T1> insert)
 {
     _mysqlInsert = insert as OdbcMySqlInsert <T1>;
     if (_mysqlInsert == null)
     {
         throw new Exception(CoreStrings.S_Features_Unique("OnDuplicateKeyUpdate", "Odbc/MySql"));
     }
     if (_mysqlInsert._noneParameterFlag == "c")
     {
         _mysqlInsert._noneParameterFlag = "cu";
     }
 }