爲什麼我得到的操作不支持WCFTestClient,因爲它是...類型? (見截圖)WCFTestClient操作不支持,因爲它是類型
的呈三角方法工作正常普通的合同,但沒有工作合同闖民宅實體框架類
有兩種反應DataContracts。
平原數據合同
[DataContract] 公共類GetSomeResponseDataContract { 私人收集myFund;
[DataMember] public Collection<MyFund> MyFund { Get { } }
}
哪裏MyFund是
[DataContract]
public class MyFund
{
[DataMember]
public string FundCode { get; set; }
[DataMember]
public string FundName { get; set; }
.
.
}
數據與EntityDataContract合同
[DataContract] 公共類GetYoursResponseDataContract { 私人收藏yourFund;
[DataMember] public Collection<YoursFund> YourFund { Get { } } }
哪裏YourFund是
[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();
}
}
}