Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (rt.HasRows)
- {
- while (rt.Read())
- {
- ProjectInfo model = new ProjectInfo();
- if (!rt.IsDBNull(0))
- {
- model.XMXX_DWMC = rt.GetString(0);
- }
- entities.Add(model);
- /**If I comment on this statement, the program would be infinitely run. But If I did not comment on it,
- rt seems like not to read the next row. I am certanly sure there are lots of rows in datareader.But I only get
- the first row .
- **/
- rt.NextResult();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement