/// <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(); }
/// <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(); }
public DatabaseCursor() { database = null; table = null; }