Mercurial > pub > bltoolkit
annotate HowTo/Data/ExecuteReader.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author | cin |
---|---|
date | Tue, 10 Mar 2015 16:02:11 +0300 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 using System.Data; | |
3 | |
4 using NUnit.Framework; | |
5 | |
6 using BLToolkit.Data; | |
7 | |
8 namespace HowTo.Data | |
9 { | |
10 [TestFixture] | |
11 public class ExecuteReader | |
12 { | |
13 [Test] | |
14 public void Test() | |
15 { | |
16 using (DbManager db = new DbManager()) | |
17 { | |
18 db.SetCommand("SELECT * FROM Person"); | |
19 | |
20 using (IDataReader rd = db./*[a]*/ExecuteReader/*[/a]*/()) | |
21 { | |
22 while (rd.Read()) | |
23 { | |
24 // ... | |
25 } | |
26 } | |
27 } | |
28 } | |
29 } | |
30 } |