Click here to Skip to main content
15,905,232 members
Everything / DataContract

DataContract

DataContract

Great Reads

by Laszlo Voros
We force to hide an empty string-property by serializing with EmitDefaultValue
by mbarbac
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
by Imran Abdul Ghani
DataContract Vs MessageContract in WCF
by Murugan Sivananantha Perumal
Self Hosted WCF Service as Windows Service with custom User Authentication over Http.

Latest Articles

by Laszlo Voros
We force to hide an empty string-property by serializing with EmitDefaultValue
by Murugan Sivananantha Perumal
Self Hosted WCF Service as Windows Service with custom User Authentication over Http.
by mbarbac
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
by Imran Abdul Ghani
DataContract Vs MessageContract in WCF

All Articles

Sort by Score

DataContract 

8 Dec 2014 by Kornfeld Eliyahu Peter
Add before! ReturnModel this line: [KnownType(typeof(FooFileModel))][KnownType(typeof(FooFileModel))][DataContract]public class ReturnModel{ [DataMember] public string Name {get;set;} [DataMember] public List LatestFiles {get;set;}}The reason is that...
29 Sep 2017 by Laszlo Voros
We force to hide an empty string-property by serializing with EmitDefaultValue
4 May 2014 by _Asif_
Below article explains similar problem and provide a solution. Please checkDataContract XML serialization and XML attributes[^]
14 Sep 2014 by Member 11082262
PDA client source : made by other person [System.CodeDom.Compiler.GeneratedCodeAttribute("NetCFSvcUtil", "3.5.0.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] ...
8 Dec 2014 by Pheonyx
Hi Guys,So I'm sure I'm missing something fairly basic but I cannot for the life of me figure out what it is. I have the following set up:Interface:public interface IMyFileInterface{ string FileName {get;set;} MyEnum FileType {get;set; DateTime UploadDate...
5 May 2015 by Member 10061514
I am building a wcf web service, and I am trying to connect it to notification recieved from ebay.My current status is that the notifications are recieved, but instead of getting to the right method with a parameter data, It reaches a method with action="*", meaning it acually cant find...
28 May 2015 by stixoffire
I cannot see the DataMember .. datas belonging to the DataService class from my winforms WCF Client, I can do the operations and that works fine - I just cannot see this DataMember object {datas} ; what am I doing wrong?Below is the example code: [DataContract] ...
4 Feb 2016 by Member 11548854
I am trying to add a data member to wcf application but failed to get its value. I created a DataContract class in my service and set the value to an object of this DataContract class in my console application. However, I failed to get the value I assigned. Here are the service...
19 May 2016 by Member 12478311
I have a windows application(A), WCFService Library, WCFServiceApplication in my solution.From windows application, when I hit submit, I can get data displayed on label.Now what should I do to send the data from another application(Windows Application B) button click.Here is code for...
19 May 2016 by RickZeeland
Something like this, if the components are on the same machine you can use named pipes:using (ServiceHost host = new ServiceHost( typeof(GetData), new Uri[]{ new Uri("http://localhost:8000"), new Uri("net.pipe://localhost") }))This is the simplest...
11 Mar 2014 by mbarbac
Implementing the Repository and Unit of Work Patterns dynamically using Kerosene ORM
26 Feb 2014 by Imran Abdul Ghani
DataContract Vs MessageContract in WCF
30 Aug 2015 by Murugan Sivananantha Perumal
Self Hosted WCF Service as Windows Service with custom User Authentication over Http.
27 May 2015 by Shmuel Zang
Where do you want to access the datas property of your service? Does it in the client side? If so, It looks like there is a little misunderstanding of how the things works.When you create a client to your service (using ChannelFactory or Add Service Reference), it creates an object that...
4 May 2014 by v.sara
I have a class which looks like below.[DataContract] public class Applicant { private string titleField; private string firstNamesField; [DataMember(Order = 1)] public string Title { get { return...
29 Apr 2015 by stixoffire
New to WCF, I am hosting a WCF class in a windows service. This service is a client that continually reads data from an OPC server, and I have a set of DataContracts [5 objects] for objects of interest. When one object changes - I read the other 4 objects or write to them. My Win Forms...
17 May 2016 by Member 12478311
I have 2 projects names ClientA and ClientB and a WCF Service.I have a button, and Textbox in ClientA Project.Here is the code for Form in ClientA Project.public partial class Form2 : Form { public Form() { InitializeComponent(); } ...