File tree Expand file tree Collapse file tree
Orm/Xtensive.Orm/Sql/Dml/Statements Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,20 +41,16 @@ internal override object Clone(SqlNodeCloneContext context)
4141 return value ;
4242 }
4343
44- SqlInsert clone = new SqlInsert ( ) ;
44+ var clone = new SqlInsert ( ) ;
4545 clone . Into = ( SqlTableRef ) Into ? . Clone ( context ) ;
4646 clone . From = ( SqlSelect ) From ? . Clone ( context ) ;
47- #pragma warning disable CS0618 // Type or member is obsolete
48- //remove cloning after changing code.
49- foreach ( KeyValuePair < SqlColumn , SqlExpression > p in Values )
50- clone . Values [ ( SqlTableColumn ) p . Key . Clone ( context ) ] =
51- p . Value . IsNullReference ( ) ? null : ( SqlExpression ) p . Value . Clone ( context ) ;
52- #pragma warning restore CS0618 // Type or member is obsolete
5347 clone . ValueRows = ValueRows . Clone ( context ) ;
5448
55- if ( Hints . Count > 0 )
56- foreach ( SqlHint hint in Hints )
49+ if ( Hints . Count > 0 ) {
50+ foreach ( var hint in Hints ) {
5751 clone . Hints . Add ( ( SqlHint ) hint . Clone ( context ) ) ;
52+ }
53+ }
5854
5955 context . NodeMapping [ this ] = clone ;
6056 return clone ;
You can’t perform that action at this time.
0 commit comments