Revision 603
The xml documentation generated for the BulkInsert method states the following:
"After inserting into the datasource, the [entity] object will be updated to refelect any changes made by the datasource. (ie: identity or computed columns) "
That does not appear to be the case.
The identity column is included in the generated DataTable, so it's possible that the SqlBulkCopy class will populate that column during the insert. (I havn't checked yet.) However, that ID column in the DataTable is initially assigned a value from the entities. That doesn't seem right since the "KeepIdentity" option is not specified when constructing the SqlBulkCopy. (KeepIdentity would seem to allow Identity inserts.) And most developers wouldn't want that anyway since we aren't populating the entities with ID's before calling BulkInsert.
After calling WriteToServer() there is no code that would take the values from the ID column in the DataTable and assign them back to each entity.
...
I just ran some tests against a really simple table. The inserts are working fine, but the ID column of the source DataTable does not get populated during the BulkCopy process. Unless there's some sort of setting to allow this, and the template is updated to use it, the Xml comment should be fixed to remove that false statement.