Hey guys!
I'm new to FluorineFx.I want to pass dataset between Flex and .Net.
With the help of DataTableType Attribute,I could easily pass datatable
between Flex and .Net.
But how to use DataSetType Attribute? Although I could find some info from
[here][1], But I'm still a little confused,in the end the size of phoneNumbers
attribute is zero,which means empty.
My Snippets:
In .Net backup,I have [DataSetType("FlexRemoteObjectSample.CustomerVO")] [DataTableType("phones", "phoneNumbers", "FlexRemoteObjectSample.PhoneVO")] public DataSet GetDataSet() {
... }
CustomerVO.cs : public class CustomerVO { private List<PhoneVO> _phoneNumbers;
public List<PhoneVO> PhoneNumbers { get { if (_phoneNumbers == null) _phoneNumbers = new List<PhoneVO>(); return _phoneNumbers; } set { _phoneNumbers = value; } } }
PhoneVO.cs : public class PhoneVO { string _number;
public string Number { get { return _number;
} set { _number = value; } } string _areaCode;
public string AreaCode { get {
return _areaCode; } set { _areaCode = value; } } }
Could anyone give me a hand?Much Thanks!
Shuo from China |