- Bulk Operations
- FromQuery Operations
- C# Eval Expression
- Options
.NET Bulk Operations Log
Log Options
Log
Allow you to log some event happening in your database.
Example
StringBuilder logger = new StringBuilder(); // SAVE customers using (var bulk = new BulkOperation(connection)) { // easy to use bulk.DestinationTableName = "Customers"; bulk.Log += s => logger.AppendLine(s); bulk.BulkInsert(dtCustomers); } // SHOW data Console.WriteLine(logger.ToString());
Try it: .NET Core | .NET Framework
UseLogDump
Allow you to log in to a string (LogDump) event happening in your database.
Example
// SAVE customers using (var bulk = new BulkOperation(connection)) { // easy to use bulk.DestinationTableName = "Customers"; bulk.UseLogDump = true; bulk.BulkInsert(dtCustomers); var logDump = bulk.LogDump; // SHOW data Console.WriteLine(logDump.ToString()); }
Try it: .NET Core | .NET Framework
LogDump
Allow you to retrieve the event happening in your database when UseLogDump is enabled.
Example
// SAVE customers using (var bulk = new BulkOperation(connection)) { // easy to use bulk.DestinationTableName = "Customers"; bulk.UseLogDump = true; bulk.BulkInsert(dtCustomers); var logDump = bulk.LogDump; // SHOW data Console.WriteLine(logDump.ToString()); }
Try it: .NET Core | .NET Framework