'Declaration Public Class SQLiteDump Inherits Devart.Common.DbDump Implements System.ComponentModel.IComponent, System.IDisposable
public class SQLiteDump : Devart.Common.DbDump, System.ComponentModel.IComponent, System.IDisposable
'Declaration Public Class SQLiteDump Inherits Devart.Common.DbDump Implements System.ComponentModel.IComponent, System.IDisposable
public class SQLiteDump : Devart.Common.DbDump, System.ComponentModel.IComponent, System.IDisposable
Use Tables property to specify a list of tables to be stored. If Tables property is an empty string all tables will be included into the dump text. To generate a script call Backup method. The produced script can be viewed in DumpText. To execute the dump script call the Restore method.
Note: This class is not available in .NET Standard 1.3 compatible assembly. It is available only in the assembly for full .NET Framework and .NET Standard 2.0 compatible assembly.
This class is available only in Professional Edition.
Note: To increase performance of the Restore method, call it inside a transaction. For example, call the SQLiteConnection.BeginTransaction method before Restore and call SQLiteConnection.Commit after Restore.
public void DumpIt(SQLiteConnection conn) { conn.Open(); SQLiteDump sqSqlDump = new SQLiteDump(); sqSqlDump.Connection = conn; sqSqlDump.IncludeDrop = true; sqSqlDump.Backup("d:\\dump.dmp"); conn.Close(); } public void UnDumpIt(SQLiteConnection conn) { conn.Open(); SQLiteDump sqSqlDump = new SQLiteDump(); sqSqlDump.Connection = conn; sqSqlDump.Restore("d:\\dump.dmp"); conn.Close(); }
Public Sub DumpIt(conn As SQLiteConnection) conn.Open() Dim sqSqlDump As New SQLiteDump() sqSqlDump.Connection = conn sqSqlDump.IncludeDrop = True sqSqlDump.Backup("d:\dump.dmp") conn.Close() End Sub Public Sub UnDumpIt(conn As SQLiteConnection) conn.Open() Dim sqSqlDump As New SQLiteDump() sqSqlDump.Connection = conn sqSqlDump.Restore("d:\dump.dmp") conn.Close() End Sub
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Devart.Common.DbDump
Devart.Data.SQLite.SQLiteDump
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2