11using System ;
2+ using Microsoft . Data . Sqlite ;
23
3- namespace SQLiteSampleApplication
4+ namespace SqliteSampleApplication
45{
56 public static class Program
67 {
@@ -13,11 +14,11 @@ static void Main()
1314
1415 static void InMemoryDb ( )
1516 {
16- using ( var database = new DbUp . SQLite . Helpers . InMemorySQLiteDatabase ( ) )
17+ using ( var database = new DbUp . Sqlite . Helpers . InMemorySqliteDatabase ( ) )
1718 {
1819 var upgrader =
1920 DbUp . DeployChanges . To
20- . SQLiteDatabase ( database . ConnectionString )
21+ . SqliteDatabase ( database . ConnectionString )
2122 . WithScriptsEmbeddedInAssembly ( System . Reflection . Assembly . GetExecutingAssembly ( ) )
2223 . LogToConsole ( )
2324 . Build ( ) ;
@@ -34,11 +35,11 @@ static void InMemoryDb()
3435
3536 static void TemporaryFileDb ( )
3637 {
37- using ( var database = new DbUp . SQLite . Helpers . TemporarySQLiteDatabase ( "test.db" ) )
38+ using ( var database = new DbUp . Sqlite . Helpers . TemporarySqliteDatabase ( "test.db" ) )
3839 {
3940 var upgrader =
4041 DbUp . DeployChanges . To
41- . SQLiteDatabase ( database . SharedConnection )
42+ . SqliteDatabase ( database . SharedConnection )
4243 . WithScriptsEmbeddedInAssembly ( System . Reflection . Assembly . GetExecutingAssembly ( ) )
4344 . LogToConsole ( )
4445 . Build ( ) ;
@@ -55,13 +56,13 @@ static void TemporaryFileDb()
5556
5657 static void PermanentFileDb ( )
5758 {
58- Microsoft . Data . Sqlite . SqliteConnection connection = new ( "Data Source=dbup.db" ) ;
59+ SqliteConnection connection = new ( "Data Source=dbup.db" ) ;
5960
60- using ( var database = new DbUp . SQLite . Helpers . SharedConnection ( connection ) )
61+ using ( var database = new DbUp . Sqlite . Helpers . SharedConnection ( connection ) )
6162 {
6263 var upgrader = DbUp . DeployChanges
6364 . To
64- . SQLiteDatabase ( connection . ConnectionString )
65+ . SqliteDatabase ( connection . ConnectionString )
6566 . WithScriptsEmbeddedInAssembly ( System . Reflection . Assembly . GetExecutingAssembly ( ) )
6667 . LogToConsole ( )
6768 . Build ( ) ;
@@ -87,15 +88,17 @@ static void Display(string dbType, DbUp.Engine.DatabaseUpgradeResult result, Tim
8788 "{0} Database Upgrade Runtime: {1}" ,
8889 dbType ,
8990 string . Format ( "{0:00}:{1:00}:{2:00}.{3:00}" , ts . Hours , ts . Minutes , ts . Seconds , ts . Milliseconds / 10 ) ) ;
91+ Console . WriteLine ( "Press any key to continue..." ) ;
9092 Console . ReadKey ( ) ;
9193 }
9294 else
9395 {
9496 Console . ForegroundColor = ConsoleColor . Red ;
9597 Console . WriteLine ( result . Error ) ;
98+ Console . WriteLine ( "Press any key to continue..." ) ;
9699 Console . ReadKey ( ) ;
97100 Console . WriteLine ( "Failed!" ) ;
98101 }
99102 }
100103 }
101- }
104+ }
0 commit comments