http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx[代码]库文件:asp.net_mvc_routing_debugger.zip Read More
配置http://www.castleproject.org/container/documentation/v21/manual/windsorconfigref.htmlapp.config Read More
1.Linq2.Extension Methods3.Lambda Methods string [] names=new string[]{"bill","Jane","Bob"}; IEnumberablestring bs=name.Wherestring(deletegate(string s){ return s.StartWith("b"); });等同于: IEnumberablestring bs=names.Where( n = n.StartWith("b") );4.Generic Type Inference5.Automatic properties6. Read More
示例代码: Read More
使用 PIVOT 和 UNPIVOTPIVOT 提供的语法比一系列复杂的 SELECT...CASE 语句中所指定的语法更简单和更具可读性。有关 PIVOT 语法的完整说明,请参阅 FROM (Transact-SQL)。以下是带批注的 PIVOT 语法。SELECT 非透视的列, [第一个透视的列] AS 列名称, [第二个透视的列] AS 列名称, ... [最后一个透视的列] AS 列名称,FROM (生成数据的 SELECT 查询) AS 源查询的别名PIVOT( 聚合函数(要聚合的列)FOR[包含要成为列标题的值的列] IN ( [第一个透视的列] Read More
http://www.geekzone.co.nz/vs2008/4653With Windows Communication Foundation (WCF), now developers can create interoperable services that send and receive messages between server and client. WCF is based on message based communication and supports many Communication Protocols like TCP, MSMQ, and HTTP Read More
WCF 预定义的绑定BasicHttpBinding 符合WSBasicProfile 1.1以提供最大的互操作性WSHttpBinding 符合WS-*协议的HTTP通信WSDualHttpBindind 双工HTTP通信,初始信息的接收者不会直接响应发送者,而是可以在一段时间之内传送任意次的响应.WSFederationBinding HTTP通信,对服务次源的访问可以根据一个显式确定的凭据提供程序发出的凭据加以控制.NetTcpBinding 提供网络里的WCF软件实体之间的安全,可靠,高性能的通信NetNamedPipeBinding 同一台机器上的WCF软件实体之间的安全,可靠 Read More
ABC: Address,Binding(BasicHttpBinding/WSHttpBinding/NetTcpBinding etc.),Contract1.添加一个WCF服务库项目App.config2.Host项目3.ClientApp Read More