How to use EntityFramework.BulkInsert?

[亡魂溺海] 提交于 2019-11-28 05:16:58

问题


I'm trying to use EntityFramework.BulkInsert located at http://efbulkinsert.codeplex.com/. It's an extension for Entity Framework.

I installed the proper NuGet package and added using EntityFramework.BulkInsert to the top of my class. When I go to do a context.BulkInsert(entities) "BulkInsert" has a red line underneath as if it doesn't exist. Can someone help me in the proper usage of this extension? I haven't used an extension method before. You are supposed to be able to just do this:

context.BulkInsert(entities);

回答1:


You need to add

using EntityFramework.BulkInsert.Extensions;

to the top of your class



来源:https://stackoverflow.com/questions/22332863/how-to-use-entityframework-bulkinsert

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!