Mercurial > pub > bltoolkit
comparison Demo/Linq/OverWCF/DataModel.tt @ 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 <#@ template language="C#" debug="True" hostspecific="True" #> | |
| 2 <#@ output extension=".generated.cs" #> | |
| 3 <#@ include file="$(SolutionDir)\Source\Templates\BLToolkit.ttinclude" #> | |
| 4 <#@ include file="$(SolutionDir)\Source\Templates\BLT4Toolkit.ttinclude" #> | |
| 5 <#@ include file="$(SolutionDir)\Source\Templates\MSSQL.ttinclude" #> | |
| 6 <# | |
| 7 ConnectionString = "Server=.;Database=BLToolkitData;Integrated Security=SSPI"; | |
| 8 | |
| 9 BaseDataContextClass = "ServiceModelDataContext"; | |
| 10 | |
| 11 Usings.Add("BLToolkit.ServiceModel"); | |
| 12 Usings.Add("System.ServiceModel"); | |
| 13 | |
| 14 GenerateModel(); | |
| 15 #> | |
| 16 | |
| 17 namespace Linq.OverWCF | |
| 18 { | |
| 19 public partial class DataModel | |
| 20 { | |
| 21 public DataModel() : base( | |
| 22 new NetTcpBinding(SecurityMode.None) | |
| 23 { | |
| 24 MaxReceivedMessageSize = 10000000, | |
| 25 MaxBufferPoolSize = 10000000, | |
| 26 MaxBufferSize = 10000000, | |
| 27 CloseTimeout = new TimeSpan(00, 01, 00), | |
| 28 OpenTimeout = new TimeSpan(00, 01, 00), | |
| 29 ReceiveTimeout = new TimeSpan(00, 10, 00), | |
| 30 SendTimeout = new TimeSpan(00, 10, 00), | |
| 31 }, | |
| 32 new EndpointAddress("net.tcp://localhost:1234/LinqOverWCF")) | |
| 33 { | |
| 34 } | |
| 35 } | |
| 36 } |
