EntityFramework.WriteToServer 1.0.0.1

dotnet add package EntityFramework.WriteToServer --version 1.0.0.1                
NuGet\Install-Package EntityFramework.WriteToServer -Version 1.0.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EntityFramework.WriteToServer" Version="1.0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFramework.WriteToServer --version 1.0.0.1                
#r "nuget: EntityFramework.WriteToServer, 1.0.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EntityFramework.WriteToServer as a Cake Addin
#addin nuget:?package=EntityFramework.WriteToServer&version=1.0.0.1

// Install EntityFramework.WriteToServer as a Cake Tool
#tool nuget:?package=EntityFramework.WriteToServer&version=1.0.0.1                

Microsoft SQL Server 提供一个称为 bcp 的流行的命令提示符实用工具,用于将数据从一个表移动到另一个表(表既可以在同一个服务器上,也可以在不同服务器上)。 SqlBulkCopy 类允许编写提供类似功能的托管代码解决方案。 还有其他将数据加载到 SQL Server 表的方法(例如 INSERT 语句),但相比之下 SqlBulkCopy 提供明显的性能优势。
使用 SqlBulkCopy 类只能向 SQL Server 表写入数据。 但是,数据源不限于 SQL Server;可以使用任何数据源,只要数据可加载到 DataTable 实例或可使用 IDataReader 实例读取数据。
使用方法:
using (DataTable dataTable = CreateDataTable(tableMapping, entities))
     {
       using (SqlBulkCopy sqlBulkCopy = new SqlBulkCopy(transaction.Connection, options, transaction))
       {
         sqlBulkCopy.BatchSize = batchSize;
         sqlBulkCopy.DestinationTableName = dataTable.TableName;
         sqlBulkCopy.WriteToServer(dataTable);
       }
     }

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.1 2,514 6/5/2014
1.0.0 2,092 6/5/2014

1.NET Framework >= 4.5。
2.代码由SmartBooks整理自Dennis Gao而来,以方便使用。
3.修正DBContext扩展方法类访问权限。