Database Connections
To manage database connections, Jenga.NET uses kimtoo Toolkit DbManager.
It comes with its inbuilt database connection manager with supports multiple databases mentioned here
Show Database Connection Manager
Kimtoo.DbManager.Connections.Show();
Check database connection
Add this code at the constructor entry Main Form (FrmMain)
public FrmMain()
{
//check database connection
Connection:
try
{
var db = Kt.Db;
}
catch (Exception ex)
{
if (MessageBox.Show(ex.Message, "AppName", MessageBoxButtons.RetryCancel) == DialogResult.Cancel)
Environment.Exit(0);
Kimtoo.DbManager.Connections.Show();
goto Connection;
}
InitializeComponent();
}
Add a Button and call in connection

private void btnConnection_Click(object sender, EventArgs e)
{
Kimtoo.DbManager.Connections.Show();
}
Last updated