摘要: 1.记账单serviceusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;namespace DealerFund{ publi... 阅读全文
posted @ 2014-04-16 22:26 feidaochuanqing 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 虚拟内存:内存的1.5倍数windows审计可以设置下,打开失败的审核,成功的审核不用打开本地计算机策略:计算机配置-windows设置-本地策略-审计Windos BPA 与SQLServerBPA:最佳实践的工具可以去微软网站上下载内存:Lazy Writer进程不断交换页面 消耗cpu和IO资源内存计数器:Available Bytes:越大越好 Page/Sec:值应持续小于20,内存不够用的情况下,页面之间的交换情况。SqlServer:BufferManager BufferCache hit radio持续大于99%,缓存命中率,越大越好。操作系统应该从32位调整成为64位磁盘: 阅读全文
posted @ 2014-04-02 23:53 feidaochuanqing 阅读(192) 评论(0) 推荐(0) 编辑
摘要: msdn:http://support.microsoft.com/kb/820122/zh-cn核心就是把外部的参数移入一个wsdl中通过wsdl.exe生成症状您可以尝试使用 Web 服务描述语言工具 (Wsdl.exe) 创建 XML Web 服务代理文件用于 Web 服务描述语言 (WSDL) 文档。但是,如果 WSDL 文档使用的在使用包含元素 () 获取类型信息的外部 XML 架构 (.xsd 文件) 中定义的架构,您可能会收到以下错误消息:错误: 无法导入来自命名空间 http://tempuri.org/ 绑定 Service1Soap。-无法导入操作 HelloWorld。- 阅读全文
posted @ 2014-03-26 09:12 feidaochuanqing 阅读(2392) 评论(0) 推荐(0) 编辑
摘要: 1.聚集索引:数据库按照聚集索引进行物理排序2.非聚集索引:将索引单独存放,对数据库中某一列进行排序处理,非聚集索引最好包含要查询的列,这样的话sqlserver只检索索引就足够,否则还要检索对应的row.3.对于关联查询最好是利用inner join 条件中的列做索引。4.索引视图:对一个复杂的关联查询可以创建视图,在视图上可以创建索引。5.如何将表放到不同的磁盘上,首先在数据库上创建对应的文件组(FileGroup) 然后将文件组映射到对应的磁盘上,最后创建表的时候指定对应的文件组,这样就把不同的表放到了不同的磁盘上了。4.分布式视图:在两个服务器上创建相同的表名,然后通过在两个服务器上创 阅读全文
posted @ 2014-03-26 07:12 feidaochuanqing 阅读(226) 评论(0) 推荐(0) 编辑
摘要: serviceusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ServiceModel;using Server;public class CalculateService : ICalculate{ #region ICalculate 成员 public string GetCalculate() { return Guid.NewGuid().ToString(); } #endregion}using ... 阅读全文
posted @ 2014-03-01 15:07 feidaochuanqing 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.首先要确保已经安装消息队列msmq2.Contract&Serviceusing System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.Text;using System.Threading.Tasks;namespace Server{ [ServiceContract] public interface IPick { [OperationContract(IsOneWay=true)] ... 阅读全文
posted @ 2013-12-12 23:40 feidaochuanqing 阅读(198) 评论(0) 推荐(0) 编辑
摘要: namespace Client{ class CalculateClient:System.ServiceModel.ClientBase,ICalculate { public CalculateClient(Binding binding, EndpointAddress endPointAddress) : base(binding, endPointAddress) { } #region ICalculate 成员 public string Add(int a... 阅读全文
posted @ 2013-11-30 09:43 feidaochuanqing 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 服务端class Program { static void Main(string[] args) { Uri listenURI = new Uri("http://127.0.0.1:9988/listener"); Binding basicBinding = new BasicHttpBinding(); //通过绑定构建信道监听器工厂 IChannelListener channelListener = basicBinding.BuildChannelList... 阅读全文
posted @ 2013-11-30 08:57 feidaochuanqing 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Person.svc注意这里的Service直接应用dll文件中的名称空间+类名就可以了,不用置顶dll文件所在的位置了,系统会自动根据名称去所有的dll文件中按照名称来查找。PersonService.DLLusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace PersonService{ public class PersonS:IPerson { public string GetName() { ... 阅读全文
posted @ 2013-11-21 21:38 feidaochuanqing 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1.Service Layerusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Services{ public class PersonService:IPerson { Person IPerson.GetPerson(string personid) { Person p = new Person() { PersonId = perso... 阅读全文
posted @ 2013-11-17 19:06 feidaochuanqing 阅读(215) 评论(0) 推荐(0) 编辑