Recently, I received a code delivery that worked on our development server but failed in unit tests on my box. The culprit was a method that transformed a List<T>
into a DataTable
and used that DataTable
to load data into SQL Server using SqlBulkCopy. Lesson: apply column mappings.