2014-10-20 46 views

回答

1

我相信,這是在文檔中一個錯字。如果您查看文章中鏈接的Advanced項目的解決方案,DatabaseFilePath只是包含數據庫路徑的輔助類的靜態字段。

在iOS中,你會使用這樣的構建路徑:

string dbPath = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), "mydbfile.sqlite"); 

if (!File.Exists (dbPath)) 
    File.Copy (seedFile, dbPath);