diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index 8a8c3d7..3badd95 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index 92dffca..cd5c7c5 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index 7a593a7..ae41a68 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/database/DAO.cs b/database/DAO.cs index 0bf6151..9457bd4 100644 --- a/database/DAO.cs +++ b/database/DAO.cs @@ -171,8 +171,6 @@ namespace compabetov2.database SQLiteCommand commandEmpleado = new SQLiteCommand(sqlEmpleado, conexion); commandEmpleado.Parameters.AddWithValue("@fklogin", fkLogin); commandEmpleado.Parameters.AddWithValue("@idempleado", idempleado); - - commandEmpleado.ExecuteNonQuery(); transaccion.Commit(); diff --git a/database/service.cs b/database/service.cs index 3fa3543..f0f3d29 100644 --- a/database/service.cs +++ b/database/service.cs @@ -125,11 +125,9 @@ namespace compabetov2.database while (reader.Read()) { - int fkIdLogin = -1; - try { - long fkIdLoginTemp = reader.GetInt64(13); - fkIdLogin = Convert.ToInt32(fkIdLoginTemp); - }catch (Exception ex) { } + long fkIdLoginTemp = reader.GetInt64(14); + int fkIdLogin = Convert.ToInt32(fkIdLoginTemp); + long id = reader.GetInt64(0); Empleado empleado = new Empleado( Convert.ToInt32(id), diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 55f91a3..7837b90 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index 8a8c3d7..3badd95 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index 92dffca..cd5c7c5 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ