Why I am getting OPERATION NOT SUPPORTED BY WCFTestClient because it is of type ...? (See screenshot)
The simillar method is working for normal plain contracts but not working for contract refering Entity Framework class
There are two Response DataContracts.
Plain data contract
[DataContract] public class GetSomeResponseDataContract { private Collection myFund;
[DataMember] public Collection<MyFund> MyFund { Get { } }
}
Where MyFund is
[DataContract]
public class MyFund
{
[DataMember]
public string FundCode { get; set; }
[DataMember]
public string FundName { get; set; }
.
.
}
Data Contract with EntityDataContract
[DataContract] public class GetYoursResponseDataContract { private Collection yourFund;
[DataMember] public Collection<YoursFund> YourFund { Get { } } }
Where YourFund is
[EdmEntityTypeAttribute(NamespaceName="RModel1", Name="YoursFund")]
[Serializable()]
[DataContractAttribute(IsReference=true)]
public partial class YoursFund : EntityObject
{
[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
[DataMemberAttribute()]
public global::System.String FundCode
{
get
{
return _FundCode;
}
set
{
OnFundCodeChanging(value);
ReportPropertyChanging("FundCode");
_FundCode = StructuralObject.SetValidValue(value, false);
ReportPropertyChanged("FundCode");
OnFundCodeChanged();
}
}
}