File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 22using System . Data . Entity ;
33using System . Data . Entity . ModelConfiguration . Conventions ;
44using SQLite . CodeFirst . Convention ;
5+ using System . IO ;
56
67namespace SQLite . CodeFirst
78{
@@ -60,15 +61,10 @@ public virtual void InitializeDatabase(TContext context)
6061 {
6162 var model = modelBuilder . Build ( context . Database . Connection ) ;
6263
63- //mprattinger: Possible fix for #45
6464 var dbFile = GetDatabasePathFromContext ( context ) ;
65- var dbFileInfo = new System . IO . FileInfo ( dbFile ) ;
66- if ( ! dbFileInfo . Directory . Exists )
67- {
68- //DBPath doesn't exist -> create it:
69- dbFileInfo . Directory . Create ( ) ;
70- }
71- //mprattinger
65+ var dbFileInfo = new FileInfo ( dbFile ) ;
66+ dbFileInfo . Directory . Create ( ) ;
67+
7268
7369 using ( var transaction = context . Database . BeginTransaction ( ) )
7470 {
You can’t perform that action at this time.
0 commit comments