Questions tagged [datacontract]

A data contract is a formal agreement between a service and a client that abstractly describes the data to be exchanged. A data contract precisely defines, for each parameter or return type, what data is serialized to be exchanged.

798 questions
-2
votes
2 answers

Set DataMembers as String.Empty

i have a dataContract with a few DataMembers as shown below. i wanna run each members of the DataContract and set it as string.Empty. all my dataMembers are of the type string. i dont know if its possible to do since by defalut the value is returned…
Nikki
  • 137
  • 2
  • 3
  • 17
-2
votes
1 answer

Serialize an object with DataContractJsonSerializer

I have a class which contains some items. I want to serialize an instance of this class to json using the DataContractJsonSerializer : [DataContract] public class Policy { private string expiration { get; set; } private List>…
-2
votes
2 answers

How to pass an Excel file from a WinForms client to a WCF service and into an SQL Server table?

How to pass an Excel file from a WinForms client to a WCF service and into an SQL Server table? Can anyone provide any guidance, code, or advice? WCF service contract and implementation that will take an Excel file as a parameter Contract…
Sam
  • 2,663
  • 10
  • 41
  • 60
1 2 3
53
54