Documentos de Académico
Documentos de Profesional
Documentos de Cultura
using MySql.Data.MySqlClient;
-----------------------------------------------------------------------------------
--------------------------------------------------------
Form2
using MySql.Data.MySqlClient;
dataAdapter.Fill(ds);
dataGridView1.ReadOnly = true;
dataGridView1.DataSource = ds.Tables[0];
}
-----------------------------------------------------------------------------------
--------------------------------------------------------
Libros
public Libros() { }
public Libros (Int64 pCodigo_de_libro, String pNombre_del_libro, String
pEditorial, String pAutor, String pGenero, String pPais_del_autor, Int64
pNumero_de_paginas, Int64 pAño_de_edicion, Int64 pPrecio)
{
this.Codigo_de_libro = pCodigo_de_libro;
this.Nombre_del_libro = pNombre_del_libro;
this.Editorial = pEditorial;
this.Autor = pAutor;
this.Genero = pGenero;
this.Pais_del_autor = pPais_del_autor;
this.Numero_de_paginas = pNumero_de_paginas;
this.Año_de_edicion = pAño_de_edicion;
this.Precio = pPrecio;
}
-----------------------------------------------------------------------------------
--------------------------------------------------------
Consultas
using MySql.Data.MySqlClient;
using System.Data.SqlClient;
Lista.Add(pLibros);
}
Conn.Close();
return Lista;
}
}
-----------------------------------------------------------------------------------
--------------------------------------------------------
BdConexion
using System.Data.SqlClient;
using MySql.Data.MySqlClient;
return Conn;
}
-----------------------------------------------------------------------------------
--------------------------------------------------------
Mysql