コード例 #1
0
        public void modificarMaterial(Material material)
        {
            DbCommand command = DataBase.GetStoredProcCommand("modificarMaterial");

            DataBase.AddInParameter(command, "material_id", DbType.Int32, material.material_id);
            DataBase.AddInParameter(command, "material_nombre", DbType.String, material.material_nombre);
            DataBase.AddInParameter(command, "material_modelo", DbType.String, material.material_modelo);
            DataBase.AddInParameter(command, "material_cantidad", DbType.Int32, material.material_cantidad);
            DataBase.AddInParameter(command, "material_observacion", DbType.String, material.material_observacion);
            DataBase.AddInParameter(command, "material_eliminado", DbType.Boolean, material.material_eliminado);

            DataBase.ExecuteNonQuery(command);
        }
コード例 #2
0
 public void modificarMaterial(Material material)
 {
     materialDAL.modificarMaterial(material);
 }
コード例 #3
0
 public void CrearMaterial(Material material)
 {
     materialDAL.CrearMaterial(material);
 }