Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 501 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 501 Bytes

SqlBulkLoader - SqlBulkCopy helper

Usage example

using System;
using System.Collections.Generic;
using System.Threading.Tasks;

using SqlBulkLoader;

public static class Program
{
    public static async Task Main()
    {
        var loader = new SqlBulkLoader(new SqlBulkLoaderConfig
        {
            ConnectionString = "..."
        });

        await loader.LoadAsync("TargetTable", Query());
    }

    private static IEnumerable<Data> Query()
    {
        ...
    }
}