Mercurial > pub > bltoolkit
annotate HowTo/Data/ExecuteDataTable.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author | cin |
---|---|
date | Fri, 28 Mar 2014 01:04:56 +0400 |
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 ExecuteDataTable | |
12 { | |
13 [Test] | |
14 public void Test() | |
15 { | |
16 using (DbManager db = new DbManager()) | |
17 { | |
18 DataTable dt = db | |
19 .SetCommand("SELECT * FROM Person") | |
20 ./*[a]*/ExecuteDataTable/*[/a]*/(); | |
21 | |
22 Assert.AreNotEqual(0, dt.Rows.Count); | |
23 } | |
24 } | |
25 } | |
26 } |