0
|
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 }
|