src/Shared/EntityFramework.SqlServerCompact/CommonUtils.cs
// <summary>
// Delete the database that the fileName points to.
// </summary>
// <param name="fileName"> Database file path. </param>
Delete the database that the fileName points to.
Delete the database that the fileName points to .
public static void DeleteDatabase(string fileName)
        {
            var expandedFileName = ReplaceDataDirectory(fileName);
            if (!DatabaseExists(expandedFileName))
            {
                throw new InvalidOperationException(EntityRes.GetString(EntityRes.DatabaseDoesNotExist));
            }
            File.Delete(expandedFileName);
        }
public static void DeleteDatabase ( string fileName ) { var expandedFileName = ReplaceDataDirectory ( fileName ) ; if ( ! DatabaseExists ( expandedFileName ) ) { throw new InvalidOperationException ( EntityRes . GetString ( EntityRes . DatabaseDoesNotExist ) ) ; } File . Delete ( expandedFileName ) ; }
Delete the database that the fileName points to.
Delete the database that the fileName points to .
fileName
string
Database file path.
Database file path .