EntityFramework.BulkInsert.SqlServerCe 错误

EntityFramework.BulkInsert.SqlServerCe error

我在一个项目中使用了Entity Framework和SQL服务器CE,我需要在一个table中插入大量记录。所以我在谷歌上搜索了 Entity Framework 的批量插入,我发现 this package on Nuget 这是一个使用 EF 和 SQL Server CE 插入批量插入的包。

我只是使用了这个代码:

  EntityFramework.BulkInsert.ProviderFactory
                    .Register<EntityFramework.BulkInsert.SqlServerCe.SqlCeBulkInsertProvider>("System.Data.SqlServerCe.SqlCeConnection");
  context.BulkInsert(tableInformation);
  context.SaveChanges();

但它没有正常工作,我收到了这个错误:

Additional information: Method 'Run' in type 'EntityFramework.BulkInsert.SqlServerCe.SqlCeBulkInsertProvider' from assembly 'EntityFramework.BulkInsert.SqlServerCe, Version=6.0.1.0, Culture=neutral, PublicKeyToken=630a17433349cb76' does not have an implementation.

我尝试搜索错误,但找不到任何相关结果。我还查看了它的 documentation,但没有任何示例或指南可以将 SQL Server CE 与其提供者一起使用。

使用 ErikEJ.SqlCeBulkCopy,可通过 NuGet 或 CodePlex