Created
November 8, 2012 23:38
-
-
Save MayogaX/4042635 to your computer and use it in GitHub Desktop.
Exemplo List populada por dataReader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<MinahClasse> lista = new List<MinhaClasse>(); | |
| SqlDataReader reader = cmd.ExecuteReader(); | |
| while (reader.Read()) | |
| { | |
| MinhaClasse classe = new MinhaClasse(); | |
| classe.propriedade = reader["propriedade"].ToString(); | |
| classe.total = Convert.Toint32(reader["total"]); | |
| lista.Add(classe); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment