Add project files.

This commit is contained in:
Mark Kors
2025-11-11 10:34:36 +01:00
parent 4a5fddd3df
commit aa6427edde
9 changed files with 277 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Data.Entity.Migrations.Model;
using System.Data.SQLite;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SQLite_test.Classes
{
internal class Crud
{
private SQLiteConnection _connection;
string connectionString = "Data Source=mydatabase.db;Version=3;";
// Connection to the database would be established here
public Crud()
{
// Initialize database connection or any other setup
_connection = new SQLiteConnection(connectionString);
try
{
_connection.Open();
Debug.WriteLine("Verbinding met de database is geopend!");
}
catch (Exception ex)
{
Debug.WriteLine($"Fout bij het openen van de database: {ex.Message}");
}
}
protected void Add()
{
// implement Add logic here
}
protected void Create()
{
// Implement create logic here
}
protected void Read()
{
// Implement read logic here
}
protected void Delete()
{
// Implement delete logic here
}
}
}