comparison HowTo/DataAccess/SelectAllSql.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2 using System.Collections.Generic;
3
4 using NUnit.Framework;
5
6 using BLToolkit.Data;
7 using BLToolkit.DataAccess;
8
9 namespace HowTo.DataAccess
10 {
11 [TestFixture]
12 public class SelectAllSql
13 {
14 [Test]
15 public void Test1()
16 {
17 /*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;
18
19 List<Person> list = query./*[a]*/SelectAll()/*[/a]*/;
20 }
21
22 [Test]
23 public void Test2()
24 {
25 using (DbManager db = new DbManager())
26 {
27 /*[a]*/SqlQuery<Person> query = new SqlQuery<Person>()/*[/a]*/;
28
29 List<Person> list = query./*[a]*/SelectAll(db)/*[/a]*/;
30 }
31 }
32 }
33 }
34