@@ -68,21 +68,21 @@ protected void ConfigureHistoryEntity()
6868 /// <param name="context">The context.</param>
6969 public override void InitializeDatabase ( TContext context )
7070 {
71- string databseFilePath = GetDatabasePathFromContext ( context ) ;
71+ string databaseFilePath = GetDatabasePathFromContext ( context ) ;
7272
73- bool dbExists = InMemoryAwareFile . Exists ( databseFilePath ) ;
73+ bool dbExists = InMemoryAwareFile . Exists ( databaseFilePath ) ;
7474 if ( dbExists )
7575 {
7676 if ( IsSameModel ( context ) )
7777 {
7878 return ;
7979 }
8080
81- FileAttributes ? attributes = InMemoryAwareFile . GetFileAttributes ( databseFilePath ) ;
82- CloseDatabase ( context , databseFilePath ) ;
83- DeleteDatabase ( context , databseFilePath ) ;
81+ FileAttributes ? attributes = InMemoryAwareFile . GetFileAttributes ( databaseFilePath ) ;
82+ CloseDatabase ( context , databaseFilePath ) ;
83+ DeleteDatabase ( context , databaseFilePath ) ;
8484 base . InitializeDatabase ( context ) ;
85- InMemoryAwareFile . SetFileAttributes ( databseFilePath , attributes ) ;
85+ InMemoryAwareFile . SetFileAttributes ( databaseFilePath , attributes ) ;
8686 SaveHistory ( context ) ;
8787 }
8888 else
@@ -92,12 +92,18 @@ public override void InitializeDatabase(TContext context)
9292 }
9393 }
9494
95- protected virtual void DeleteDatabase ( TContext context , string databseFilePath ) {
96- InMemoryAwareFile . Delete ( databseFilePath ) ;
95+ /// <summary>
96+ /// Called to drop/remove Database file from disk.
97+ /// </summary>
98+ /// <param name="context">The context.</param>
99+ /// <param name="databaseFilePath">Filename of Database to be removed.</param>
100+ protected virtual void DeleteDatabase ( TContext context , string databaseFilePath )
101+ {
102+ InMemoryAwareFile . Delete ( databaseFilePath ) ;
97103 }
98104
99105 [ SuppressMessage ( "Microsoft.Reliability" , "CA2001:AvoidCallingProblematicMethods" , MessageId = "System.GC.Collect" , Justification = "Required." ) ]
100- private static void CloseDatabase ( TContext context , string databseFilePath )
106+ private static void CloseDatabase ( TContext context , string databaseFilePath )
101107 {
102108 context . Database . Connection . Close ( ) ;
103109 GC . Collect ( ) ;
0 commit comments