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

The documentation in the readme.md does not mention the IBulkProvider and cannot create one #13

Open
mtherien opened this issue Mar 2, 2018 · 2 comments

Comments

@mtherien
Copy link

mtherien commented Mar 2, 2018

In the documentation, there is no reference to the IBulkProvider. I see there is a SqlServerBulkProvider, but I cannot create it. It does not appear to be in the NuGet package.

Please update your documentation and the NuGet package

@MHanafy
Copy link
Owner

MHanafy commented Apr 18, 2018

Thanks for raising the issue Mike.
I assume you want use the library not extend it.
If that’s true, you don’t need to create an instance of Bulk Provider, just add the using statement as explained in docs, and you’ll find bulk functions showing on the DbContext.
Please let me know if you have more inquiries.
Thanks,
Mahmoud,

@bzbetty
Copy link

bzbetty commented May 3, 2018

BulkUpdate's signature is
public static void BulkUpdate(this DbContext context, IBulkProvider bulkProvider, ICollection entities, RefreshMode refreshMode = RefreshMode.All)

So in this case we do need to provide some kind of IBulkProvider.

looks like you can just new SqlBulkProvider() to get it to work, but EntityExtensions.SqlServer doesn't appear to have a nuget package yet.

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

No branches or pull requests

3 participants