arreglar proyecto
This commit is contained in:
+7
-3
@@ -105,8 +105,12 @@ namespace compabetov2.database
|
||||
|
||||
while (reader.Read())
|
||||
{
|
||||
long fkIdLogin = reader.GetInt64(0);
|
||||
|
||||
int? fkIdLogin = null;
|
||||
try
|
||||
{
|
||||
long fkIdLoginTemp = reader.GetInt64(13);
|
||||
fkIdLogin = Convert.ToInt32(fkIdLoginTemp); ;
|
||||
}catch (Exception ex){}
|
||||
long id = reader.GetInt64(0);
|
||||
Empleado empleado = new Empleado(
|
||||
Convert.ToInt32(id),
|
||||
@@ -122,7 +126,7 @@ namespace compabetov2.database
|
||||
reader["referencia"].ToString(),
|
||||
reader["fecha_nac"].ToString(),
|
||||
reader["telefono"].ToString(),
|
||||
Convert.ToInt32(fkIdLogin)
|
||||
fkIdLogin
|
||||
) ;
|
||||
empleados.Add(empleado);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user