File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,13 @@ T ToEntity(TableEntity entity)
193193 // perform its advanced ctor and conversion detection as usual.
194194 writer . WriteStartObject ( ) ;
195195
196- if ( partitionKeyProperty != null )
196+ if ( partitionKeyProperty != null && ! entity . ContainsKey ( partitionKeyProperty ) )
197197 writer . WriteString ( partitionKeyProperty , entity . PartitionKey ) ;
198198
199- if ( rowKeyProperty != null )
199+ if ( rowKeyProperty != null && ! entity . ContainsKey ( rowKeyProperty ) )
200200 writer . WriteString ( rowKeyProperty , entity . RowKey ) ;
201201
202- if ( entity . Timestamp != null )
202+ if ( entity . Timestamp != null && ! entity . ContainsKey ( nameof ( ITableEntity . Timestamp ) ) )
203203 writer . WriteString ( nameof ( ITableEntity . Timestamp ) , entity . Timestamp . Value . ToString ( "O" ) ) ;
204204
205205 foreach ( var property in entity )
You can’t perform that action at this time.
0 commit comments