I am using a lot of bulk insert calls similar to this:
List<Object> list = someSetOfData;
dbcontext.BulkInsert(list);
Each object has multiple string properties that can only be a certain length in the database. Based on the amount of data that is getting inserted, it would slow down the application if I manually check that each string is the correct length before I insert it. Is there a way that I can tell BulkInsert to automatically truncate any strings that are too long (so that it won't throw exceptions)? Also if there is a way to do that, will it tell me when it actually truncates a string?
And if not, what else would you recommend trying?