Mercurial > pub > bltoolkit
comparison UnitTests/Linq/Exceptions/JoinTest.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.Linq; | |
| 3 | |
| 4 using NUnit.Framework; | |
| 5 | |
| 6 using BLToolkit.Data.Linq; | |
| 7 | |
| 8 namespace Data.Exceptions | |
| 9 { | |
| 10 using Linq; | |
| 11 using Linq.Model; | |
| 12 | |
| 13 [TestFixture] | |
| 14 public class JoinTest : TestBase | |
| 15 { | |
| 16 [Test, ExpectedException(typeof(LinqException))] | |
| 17 public void InnerJoin() | |
| 18 { | |
| 19 ForEachProvider(typeof(NotSupportedException), db => | |
| 20 { | |
| 21 var q = | |
| 22 from p1 in db.Person | |
| 23 join p2 in db.Person on new Person { FirstName = "", ID = p1.ID } equals new Person { ID = p2.ID } | |
| 24 where p1.ID == 1 | |
| 25 select new Person { ID = p1.ID, FirstName = p2.FirstName }; | |
| 26 q.ToList(); | |
| 27 }); | |
| 28 } | |
| 29 } | |
| 30 } |
