When does LocalDB unlock the mdf file?
问题 Question: I create a copy of an mdf file with a random name. I inject that name into the connect string used by an EF6 DbContext. It opens fine, I run queries, etc, then I dispose of the context. At this point if I attempt to delete the temp mdf file from the file system I cannot delete it; I get a "file is in use by another process" error. Does anyone know if it's possible to force the connection to drop the lock on the mdf file when the connection closes? Or when the SqlExpress engines