Mercurial > pub > bltoolkit
comparison UnitTests/Linq/TestServiceModelDataContext.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.ServiceModel; | |
| 3 | |
| 4 using BLToolkit.Data.Linq; | |
| 5 using BLToolkit.ServiceModel; | |
| 6 | |
| 7 namespace Data.Linq | |
| 8 { | |
| 9 using Model; | |
| 10 | |
| 11 public class TestServiceModelDataContext : ServiceModelDataContext, ITestDataContext | |
| 12 { | |
| 13 public TestServiceModelDataContext(int ip) : base( | |
| 14 new NetTcpBinding(SecurityMode.None) | |
| 15 { | |
| 16 MaxReceivedMessageSize = 10000000, | |
| 17 MaxBufferPoolSize = 10000000, | |
| 18 MaxBufferSize = 10000000, | |
| 19 CloseTimeout = new TimeSpan(00, 01, 00), | |
| 20 OpenTimeout = new TimeSpan(00, 01, 00), | |
| 21 ReceiveTimeout = new TimeSpan(00, 10, 00), | |
| 22 SendTimeout = new TimeSpan(00, 10, 00), | |
| 23 }, | |
| 24 new EndpointAddress("net.tcp://localhost:" + ip + "/LinqOverWCF")) | |
| 25 { | |
| 26 ((NetTcpBinding)Binding).ReaderQuotas.MaxStringContentLength = 1000000; | |
| 27 } | |
| 28 | |
| 29 public Table<Person> Person { get { return this.GetTable<Person>(); } } | |
| 30 public Table<Patient> Patient { get { return this.GetTable<Patient>(); } } | |
| 31 public Table<Doctor> Doctor { get { return this.GetTable<Doctor>(); } } | |
| 32 public Table<Parent> Parent { get { return this.GetTable<Parent>(); } } | |
| 33 public Table<Parent1> Parent1 { get { return this.GetTable<Parent1>(); } } | |
| 34 public Table<IParent> Parent2 { get { return this.GetTable<IParent>(); } } | |
| 35 public Table<Parent4> Parent4 { get { return this.GetTable<Parent4>(); } } | |
| 36 public Table<Parent5> Parent5 { get { return this.GetTable<Parent5>(); } } | |
| 37 public Table<ParentInheritanceBase> ParentInheritance { get { return this.GetTable<ParentInheritanceBase>(); } } | |
| 38 public Table<ParentInheritanceBase2> ParentInheritance2 { get { return this.GetTable<ParentInheritanceBase2>(); } } | |
| 39 public Table<ParentInheritanceBase3> ParentInheritance3 { get { return this.GetTable<ParentInheritanceBase3>(); } } | |
| 40 public Table<ParentInheritanceBase4> ParentInheritance4 { get { return this.GetTable<ParentInheritanceBase4>(); } } | |
| 41 public Table<ParentInheritance1> ParentInheritance1 { get { return this.GetTable<ParentInheritance1>(); } } | |
| 42 public Table<ParentInheritanceValue> ParentInheritanceValue { get { return this.GetTable<ParentInheritanceValue>(); } } | |
| 43 public Table<Child> Child { get { return this.GetTable<Child>(); } } | |
| 44 public Table<GrandChild> GrandChild { get { return this.GetTable<GrandChild>(); } } | |
| 45 public Table<GrandChild1> GrandChild1 { get { return this.GetTable<GrandChild1>(); } } | |
| 46 public Table<LinqDataTypes> Types { get { return this.GetTable<LinqDataTypes>(); } } | |
| 47 public Table<LinqDataTypes2> Types2 { get { return this.GetTable<LinqDataTypes2>(); } } | |
| 48 public Table<TestIdentity> TestIdentity { get { return this.GetTable<TestIdentity>(); } } | |
| 49 } | |
| 50 } | 
