SQLite
 sql >> Cơ Sở Dữ Liệu >  >> RDS >> SQLite

nhập cơ sở dữ liệu sqlite đã được tạo (xamarin)

string localPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), YourAppName);

//Directory with your DB3 file
var dirx = Android.OS.Environment.ExternalStorageDirectory.ToString();

// DB File 
var dbfile = System.IO.Path.Combine(dirx , "/YourAppName/YourSQLiteDB.db3");



            if (File.Exists(dbfile))
            {

                File.Copy(dbfile, localPath, true);
                Toast.MakeText(this, "SQLiteDB copied successfully!", ToastLength.Long).Show();


            }
            else
            {
                Toast.MakeText(this, "copy from " + diry +         System.Environment.NewLine + "to " + localPath + " failed or source file is missing!", ToastLength.Long).Show();
            }
}



  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. Android - Cách tiếp cận tốt hơn trong việc tải hình ảnh thẻ SD CARD

  2. Sao chép sqlite trong nội dung studio android không hoạt động

  3. Android- setPeriodic cho JobScheduler sẽ không hoạt động

  4. Cách lấy ngày hiện tại trong SQLite

  5. nhập cơ sở dữ liệu sqlite đã được tạo (xamarin)