Skip to content

rizansari/DbTablesImportExport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

DbImportExport library for .NET Core and .NET 5

Library Version: v1.0.3

Installation

Install-Package DbImportExport

Usage

Export

    var config = new ExportConfig()
    {
        ConnectionString = "CONNECTION_STRING_HERE",
        DatabaseProvider = "System.Data.SqlClient",
        Destination = @"D:\temp\db\backup.bak",
        TableNames = (new string[] { "TABLE1" }).ToList()
    };
    var export = new Export(config);
    export.ExportToFile();

Import

    var config = new ImportConfig()
    {
        ConnectionString = "CONNECTION_STRING_HERE",
        DatabaseProvider = "System.Data.SqlClient",
        Source = @"D:\temp\db\backup.bak",
        IdentityInsert = true,
        Overwrite = true
    };
    var import = new Import(config);
    import.ImportFromFile();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages