In WCF
base type can’t refer the derived types implicitly so we uses-à KnowType attribute.
[knowType(b)]
[DataContract]
Class
a
{
}
Class
b: a
{
}
Then
wcf runtime serialize the data of b along with a type. Which is more simple
with the help of EF 4.0 onwords we no need to set KnowType attribute.
If we
set LazyLoadingEnable=true all referenced type of current type automatically
loads.
Ex:
Service side :
so all type they can load reference type details also
Products---> has 2 keys which loads referenced details also.
then
at client desiplay details
No comments:
Post a Comment