Mercurial > pub > bltoolkit
annotate UnitTests/Linq/Exceptions/Inheritance.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.Linq; | |
3 | |
4 using NUnit.Framework; | |
5 | |
6 using BLToolkit.Data.Linq; | |
7 | |
8 namespace Data.Exceptions | |
9 { | |
10 using Linq; | |
11 | |
12 [TestFixture] | |
13 public class Inheritance : TestBase | |
14 { | |
15 [Test, ExpectedException(typeof(LinqException))] | |
16 public void Test1() | |
17 { | |
18 ForEachProvider(typeof(LinqException), db => | |
19 { | |
20 var q = from p in db.ParentInheritance2 select p; | |
21 q.ToList(); | |
22 }); | |
23 } | |
24 } | |
25 } |