Mercurial > pub > bltoolkit
comparison Demo/Silverlight/Client/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 debug="True" hostspecific="True" #> | |
2 <#@ output extension=".generated.cs" #> | |
3 <#@ include file="$(SolutionDir)\Source\Templates\BLToolkit.ttinclude" #> | |
4 <#@ include file="$(SolutionDir)\Source\Templates\MSSQL.ttinclude" #> | |
5 <# | |
6 ConnectionString = "Server=.;Database=Northwind;Integrated Security=SSPI"; | |
7 | |
8 Namespace = "Client"; | |
9 DataContextName = "DataModel"; | |
10 BaseDataContextClass = "SoapDataContext"; | |
11 | |
12 Usings.Add("BLToolkit.ServiceModel"); | |
13 Usings.Add("System.ServiceModel"); | |
14 | |
15 GenerateModel(); | |
16 #> | |
17 | |
18 namespace Client | |
19 { | |
20 public partial class DataModel | |
21 { | |
22 public DataModel() : base( | |
23 new BasicHttpBinding(BasicHttpSecurityMode.None) | |
24 { | |
25 MaxReceivedMessageSize = 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("http://localhost:31020/LinqWebService.asmx")) | |
33 // base("TestLinqWebServiceSoap") | |
34 { | |
35 } | |
36 } | |
37 } |