conexion a base de datos y login

This commit is contained in:
carlos
2023-12-21 18:18:30 -06:00
parent e0b45e1b28
commit 82db922273
156 changed files with 284963 additions and 34 deletions
+31
View File
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SQLite;
using Microsoft.VisualBasic;
using System.Windows.Forms;
namespace compabetov2.database
{
internal class Conexion
{
public SQLiteConnection get_connection()
{
SQLiteConnection conection = null;
try
{
String conectionString = "Data Source=data.db;Version=3;New=True;Compress=True";
conection = new SQLiteConnection(conectionString);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
return conection;
}
}
}