Bring Bulk insert into the ORM era


Bring Bulk insert into the ORM era modern application increasingly drifting toward Object Relational Mapping (ORM). but ORMs does not designed for bulk Insert operations, there were a few community solution, including this one, which deal with the issue, those solution are using the old ugly DataTable, which means ugly mapping from DTO to DataTable (and potential memory leak if the DataTable does not disposed).   this post will suggest alternative solution which will use relative small helper class that can convert any IEnumerable<T> into partial implementation of...
no comments