Skip to content

Commit c54c17f

Browse files
adeclerFraser Greenroyd
authored andcommitted
Fix issue with pushing back objects pulled from database
1 parent b676453 commit c54c17f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

SQL_Adapter/AdapterActions/Push.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,14 @@ private List<object> GetRowsToPush(IEnumerable<object> data, DataTable dataTable
185185
DataRow row = dataTable.NewRow();
186186
foreach (string column in columns)
187187
{
188-
if (properties.ContainsKey(column))
189-
row[column] = properties[column].GetValue(item);
190-
else if (customData.ContainsKey(column))
191-
row[column] = customData[column];
188+
try
189+
{
190+
if (properties.ContainsKey(column))
191+
row[column] = properties[column].GetValue(item);
192+
else if (customData.ContainsKey(column))
193+
row[column] = customData[column];
194+
}
195+
catch { }
192196
}
193197
dataTable.Rows.Add(row);
194198
rows.Add(item);

0 commit comments

Comments
 (0)