Skip to content
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

Fixed BulkInsert throwing an exception with custom column name on SQLite #125

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

vdbwouter
Copy link
Contributor

This PR fixes #124, which is that an exception was thrown when using a custom column name in SQLite.

The reason for this exception is that the custom column name was used as the parameter name for insertions when generating the command. However, when setting the parameters, it tried to set the parameter with the property name instead. This PR fixes this error by using the property name in both places.

This update fixes an exception that was thrown when using a custom
column name in SQLite. When using a custom column name, the custom name
was used as the parameter name. Upon setting the parameter, however, it
tried to set the parameter with the property name instead. This commit
fixes this error by using the property name in both places.
@videokojot videokojot merged commit 4c449c1 into videokojot:main May 1, 2024
3 checks passed
@vdbwouter vdbwouter deleted the issue-124 branch May 1, 2024 12:58
@triforcely
Copy link
Contributor

@videokojot hey, when can we expect release with this fix?

@videokojot
Copy link
Owner

@triforcely hi, sorry for the delay - released new version:
https://github.com/videokojot/EFCore.BulkExtensions.MIT/releases/tag/16.2

https://www.nuget.org/packages/EFCore.BulkExtensions.MIT/

@triforcely
Copy link
Contributor

@videokojot thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BulkInsert throwing an exception with custom column name on SQLite
3 participants