Explain Data contracts?
Submitted by: AdministratorDefine which data types are passed to and from the service. WCF defines implicit contracts for built-in types such as int and string, but we can easily define explicit opt-in data contracts for custom types.
There are two types of Data Contracts.
DataContract - attribute used to define the class
DataMember - attribute used to define the properties.
[DataContract]
class Contact
{
[DataMember]
public string FirstName;
[DataMember]
public string LastName;
}
Submitted by: Administrator
There are two types of Data Contracts.
DataContract - attribute used to define the class
DataMember - attribute used to define the properties.
[DataContract]
class Contact
{
[DataMember]
public string FirstName;
[DataMember]
public string LastName;
}
Submitted by: Administrator
Read Online WCF Data Services Job Interview Questions And Answers
Top WCF Data Services Questions
☺ | Tell me what is Proxy and how to generate proxy for WCF Services? |
☺ | Explain what is the difference WCF and Web services? |
☺ | Explain what are the main components of WCF? |
☺ | Explain WCF IPC binding type? |
☺ | Explain what is Transport and Message Reliability? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |