-
-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BulkInsertOrUpdate not setting Ids automatically #556
Comments
You should leave PreserveInsertOrder to true |
It's actually up to Sqlite itself, which does not have full MERGE capabilities like SqlServer. Will add a comment about this in the ReadMe. |
Thanks for the clarification. This is what I have ended up doing for the meantime, so I will just stick with that. |
I am having an issue using the BulkInsertOrUpdate functionality whilst trying to insert a list of records into a sqlite database.
The list contains a basic list of entities with the following properties:
When the entities are created, they do not have an Id set i.e. Id=0. When I use BulkInsertOtUpdate, only 1 record is added to the database. This record is generally the last item in the list and it has an Id of 0.
When I use the BulkInsert method, the records are inserted correctly and their Ids are automatically set.
I can also insert the entities if I manually set the Id myself, however, I would like to avoid this as it will crreate a large overhead for me if I had to do this for the more complex entities.
The text was updated successfully, but these errors were encountered: