private static void CreateSqlFile(string fileName) { File.Delete(fileName); var sqliteProvider = new SqliteProvider(); sqliteProvider.CreateConnection("Filename=" + fileName); sqliteProvider.Save(SceneInUse.Instance.Scene); sqliteProvider.CloseConnection(); }
private static Scene ImportSqliteFile(int index, string fileName) { var sqliteProvider = new SqliteProvider(); sqliteProvider.CreateConnection("Filename=" + fileName); var scene = sqliteProvider.LoadScene(sqliteProvider.LoadScenes()[index].SceneId); sqliteProvider.CloseConnection(); int sceneIdInFile = scene.SceneId; var insertedScene = DataAccessFacade.Instance.GetSceneAccess().SaveNew(scene); SceneInUse.Instance.Set(insertedScene); return(insertedScene); }