Questions tagged [datacontracts]

36 questions
0
votes
2 answers

How to inherit three data contracts in a single object?

How to invoke three data contract objects and create it in a single object? I have a data contract class like this [Serializable] [DataContract] public class Address { [DataMember] public long AddressId { get; set;…
Vara Prasad.M
  • 1,530
  • 9
  • 31
  • 55
0
votes
1 answer

How to get the property name from the property in data contract

I have a datacontract and in that i want to get the name of a property as mentioned in the code below. [DataMember] public string PhoneNumber { get; set; } Now i am passing the values as void GetMethod() { // takes PropertyName and…
Vara Prasad.M
  • 1,530
  • 9
  • 31
  • 55
0
votes
1 answer

WCF client references to DataContracts ('Datasources' automatically generated)

I have a client that references two assemblies : a WCF service and DLL containing dataContracts. At the same time, the client consumes the WSDL of the WCF Service. The problem is that the service reference does not proxy DataContracts (just the…
Akli
  • 1,351
  • 1
  • 15
  • 28
0
votes
1 answer

Conditional Mandatory fields in wcf data contract

Is their any way we can have conditional Mandatory Data fields in dataContract , for eg - We have IsRequired property as a part of DataMember attribute to make sure particular data field is always passed , is their any way in which we can make data…
ankush
  • 949
  • 2
  • 14
  • 33
0
votes
1 answer

WCF Input/Output DataContract definition guidelines

I need some guidance on what is the best way to define DataContracts for following scenario : 1. I have 2 web methods one to upload the raw data 2. This data is used on the server for certain calculations. i.e. An item has a set of calculations, 3.…
Aditi
  • 1
  • 1
0
votes
1 answer

Finding an app for MS Sharing image sample?

I've been tinkering with this to implement the share charm into my app: http://code.msdn.microsoft.com/windowsapps/Sharing-Content-Source-App-d9bffd84 It's been a great resource, but I seem to be having trouble getting Image sharing to work when…
1 2
3