malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 27 下一页

2012年7月7日

Which binding is best--WCF Bindings

摘要: Which binding is best? That’s a question I hear and see a lot. When it’s asked of me, the answer is always – “it depends”. It’s impossible to know from that simple question which binding is going to “best” meet your application requirements. Quickly after I start probing for more information, the qu 阅读全文

posted @ 2012-07-07 15:21 malaikuangren 阅读(176) 评论(0) 推荐(0)

2012年7月6日

DataContract KnownType---Data Transfer in Service Contracts

摘要: TheKnownTypeAttributeclass allows you to specify, in advance, the types that should be included for consideration during deserialization. For a working example, see theKnown Typesexample.Normally, when passing parameters and return values between a client and a service, both endpoints share all of t 阅读全文

posted @ 2012-07-06 22:25 malaikuangren 阅读(556) 评论(0) 推荐(0)
Using the Message Class---Data Transfer in Service Contracts

摘要: TheMessageclass is fundamental to Windows Communication Foundation (WCF). All communication between clients and services ultimately results inMessageinstances being sent and received.You would not usually interact with theMessageclass directly. Instead, WCF service model constructs, such as data con 阅读全文

posted @ 2012-07-06 17:51 malaikuangren 阅读(543) 评论(0) 推荐(0)
Using XmlSerializer (using Attributes like XmlElement , XmlAttribute etc )--- Data Transfer in Service Contracts

摘要: Windows Communication Foundation (WCF) can use two different serialization technologies to turn the data in your application into XML that is transmitted between clients and services, a process called serialization. (DataContract and XML Serializer)By default WCF uses theDataContractSerializerclass 阅读全文

posted @ 2012-07-06 17:43 malaikuangren 阅读(1087) 评论(0) 推荐(0)
Data Transfer in Service Contracts

摘要: DataContract is the default serialization programming model for WCF. However WCF supports more than just the types marked wth DataContract attribute. It supports serialization of the following kinds of types in the default mode.CLRbuilt-in typesByte array,DateTime,TimeSpan,GUID,Uri,XmlQualifiedName, 阅读全文

posted @ 2012-07-06 04:40 malaikuangren 阅读(172) 评论(0) 推荐(0)

2012年7月5日

IXmlSerializable With WCF---Data Transfer in Service Contracts

摘要: Types that implement theIXmlSerializableinterface are fully supported by theDataContractSerializer. TheXmlSchemaProviderAttributeattribute should always be applied to these types to control their schema.Caution:If you are serializing polymorphic types you must apply theXmlSchemaProviderAttributeto t 阅读全文

posted @ 2012-07-05 23:14 malaikuangren 阅读(1265) 评论(0) 推荐(0)
DataContract POCO Support---Data Transfer in Service Contracts

摘要: By default, theDataContractSerializerserializes all publicly visible types. All public read/write properties and fields of the type are serialized.You can change the default behavior by applying theDataContractAttributeandDataMemberAttributeattributes to the types and members This feature can be use 阅读全文

posted @ 2012-07-05 17:01 malaikuangren 阅读(588) 评论(0) 推荐(0)

2012年7月4日

Introducing XML Serialization

摘要: The following items can be serialized using theXmLSerializerclass:Public read/write properties and fields of public classesClasses that implementICollectionorIEnumerableNoteOnly collections are serialized, not public properties.XmlElementobjectsXmlNodeobjectsDataSetobjectsexample code for ICollectio 阅读全文

posted @ 2012-07-04 17:08 malaikuangren 阅读(181) 评论(0) 推荐(0)
Difference Between XmlSerialization and BinarySerialization

摘要: Serializationis a process that permits to convert the state of an object into a form that can be stored into some durable medium (file, DB) to rebuild original object in the future or to send the object to another process or computer through network channels.1. Xml Serialization in .net, has probabl 阅读全文

posted @ 2012-07-04 15:57 malaikuangren 阅读(193) 评论(0) 推荐(0)

2012年7月3日

Version Tolerant Serialization

摘要: Let's Start it By a sample of code.// Version 1 of the Address class.[Serializable]public class Address{ public string Street; public string City;}// Version 2.0 of the Address class.[Serializable]public class Address{ public string Street; public string City; // The older application... 阅读全文

posted @ 2012-07-03 23:22 malaikuangren 阅读(154) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 27 下一页