如何使用EntityFramework.BulkInsert? [英] How to use EntityFramework.BulkInsert?
问题描述
我试图用EntityFramework.BulkInsert位于 HTTP://efbulkinsert.$c$cplex。 COM / 。这对实体框架的延伸。
我安装了正确的NuGet包,并添加使用EntityFramework.BulkInsert
来我班上名列前茅。当我做了一个 context.BulkInsert(实体)
BulkInsert有一条红线之下,就好像它不存在。有人可以帮助我在这个扩展的正确使用?我以前没有用过的扩展方法。您应该能够只是做到这一点:
context.BulkInsert(实体);
您需要添加
使用EntityFramework.BulkInsert.Extensions;
你的班上名列前茅
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);
You need to add
using EntityFramework.BulkInsert.Extensions;
to the top of your class
这篇关于如何使用EntityFramework.BulkInsert?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!