Exemple #1
0
        /// <include file='Docs/DatabaseCursorDoc.xml' path='docs/ConnectAsync/*'/>
        public async Task ConnectAsync(string databasePath)
        {
            if (File.Exists(databasePath))
            {
                database = await SaveSystem.LoadDbAsync(databasePath);

                return;
            }

            database = new Core.Database(databasePath);
            table    = null;
            await CommitAsync();
        }
Exemple #2
0
        /// <include file='Docs/DatabaseCursorDoc.xml' path='docs/sync/Connect/*'/>
        public void Connect(string databasePath)
        {
            // Eğer dosya mevcutsa dosyayı okur ve metodu bitirir
            if (File.Exists(databasePath))
            {
                database = SaveSystem.LoadDb(databasePath);
                return;
            }

            // Eğer dosya yoksa yeni dosya oluşturur
            database = new Core.Database(databasePath);
            table    = null;
            Commit();
        }
Exemple #3
0
 public DatabaseCursor()
 {
     database = null;
     table    = null;
 }