27.06.2014 Views

INFORMATICA MEDICA

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CreateCommand (2)<br />

• Esecuzione dell’oggetto command, il set di dati è assegnato<br />

all’oggetto datareader<br />

• myDataReader = myCmd.ExecuteReader()<br />

• Il metodo Read esegue la letturadi un record dell’oggetto<br />

datareader<br />

• myDataReader.Read()<br />

• Negli Item dell’oggetto datareader ho i campi del record<br />

• Dim nn as String = myDataReader.Item(“Nome”) (VB)<br />

• string nn = myDataReader.Item(“Nome”); (C#)<br />

Inf. Med. - 4. ADO.NET - A.A.<br />

2013/14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!