datacontract
Is it possible to use entities as data contracts?
Is it possible to use objects of Entity classes as Data Contract on WCF service ? So I can send them on the client side. is this good design approach ?[详细]
2023-03-23 13:48 分类:问答What is wrong with my DataContract?
I am writing my first WCF service. I am trying to understand how Datacontracts work. I have read the MSDN Article that describes how custom types should be marked up to create a data contract but I ca[详细]
2023-03-21 18:49 分类:问答How to find out if class has DataContract attribute?
I\'m writing a serialization function that needs to determine whether class has DataContract attribute. Basically function will use DataContractSerializer if class has DataContract attribute, otherwis[详细]
2023-03-21 06:04 分类:问答Is it possible to use generic DataContract's from the client end?
I know when you create a service you can create a generic DataContract: [DataContract(Name = \"Get{0}Request\")[详细]
2023-03-20 07:17 分类:问答WCF - Is using a generic in your datacontract going to make your WSDLs non-interoperable?
Basically: [DataContract(Namespace = \"http://www.abc.com/foo\" Name = \"Get{0}Request\")] public class GetGenericRequest<T> { ... }[详细]
2023-03-15 02:16 分类:问答WCF - DataContract by copy/paste original code or by auto-generated code for shared abstract class?
[DataContract] public abstract class FooBase { [DataMember] public int Bar { get; set; } } That is a base class that I use as the base class for other classes that are also DataContracts. Here\'s th[详细]
2023-03-14 01:00 分类:问答What's the practical way of serializing an instance of subclass by using DataContractSerializer?
What\'s the practical way of serializing an instance of subclass by using DataContractSerializer? For example, here are the data types:[详细]
2023-03-13 03:30 分类:问答Is it correct to serialize an event? (Applying a DataMember attribute)
A very simple question... Is it correct to apply a DataMember attribute to an event or a delegate to let it be serialized?[详细]
2023-03-11 13:26 分类:问答WCF data contracts with base class and derived classes - what are the consequences of changes to the base class?
As I understand it you should use the Order property of the DataMember attribute so that you can add things to the data contract without the change in order causing things to break, but how should you[详细]
2023-03-09 15:11 分类:问答Complex situations to deal with concerning DataContract in WCF
There are thousands of questions regarding DataContract(s) in WCF, with special attention for those situations where inheritance is involved.[详细]
2023-03-09 06:31 分类:问答