@@ -631,7 +631,7 @@ string ToSqlValuesOrSelectUnionAllExtension103(bool isValues, Action<object, int
631631 foreach ( var item in atarr )
632632 {
633633 _source = item . ToList ( ) ;
634- sb . Append ( ToSqlValuesOrSelectUnionAllExtension103 ( isValues , onrowPre , onrow , true ) ) . Append ( "\r \n \r \n ;\r \n \r \n " ) ;
634+ sb . Append ( ToSqlValuesOrSelectUnionAllExtension103 ( isValues , onrowPre , onrow , true , ignoreColumn ) ) . Append ( "\r \n \r \n ;\r \n \r \n " ) ;
635635 }
636636 _source = oldSource ;
637637 if ( sb . Length > 0 ) sb . Remove ( sb . Length - 9 , 9 ) ;
@@ -644,7 +644,7 @@ string ToSqlValuesOrSelectUnionAllExtension103(bool isValues, Action<object, int
644644 foreach ( var col in _table . Columns . Values )
645645 {
646646 //增加忽略插入的列
647- if ( ignoreColumn != null && ignoreColumn . Contains ( col . CsName ) ) continue ;
647+ if ( ignoreColumn ? . Contains ( col . CsName ) == true ) continue ;
648648 if ( col . Attribute . IsIdentity && _insertIdentity == false && string . IsNullOrEmpty ( col . DbInsertValue ) ) continue ;
649649 if ( col . Attribute . IsIdentity == false && _ignore . ContainsKey ( col . Attribute . Name ) ) continue ;
650650
@@ -666,7 +666,7 @@ string ToSqlValuesOrSelectUnionAllExtension103(bool isValues, Action<object, int
666666 foreach ( var col in _table . Columns . Values )
667667 {
668668 //增加忽略插入的列
669- if ( ignoreColumn != null && ignoreColumn . Contains ( col . CsName ) ) continue ;
669+ if ( ignoreColumn ? . Contains ( col . CsName ) == true ) continue ;
670670 if ( col . Attribute . IsIdentity && _insertIdentity == false && string . IsNullOrEmpty ( col . DbInsertValue ) ) continue ;
671671 if ( col . Attribute . IsIdentity == false && _ignore . ContainsKey ( col . Attribute . Name ) ) continue ;
672672
0 commit comments