how to use DataSetType in FluorineFx?

View: New views
1 Messages — Rating Filter:   Alert me  

how to use DataSetType in FluorineFx?

by Shuo2008 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

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



好玩贺卡等你发,邮箱贺卡全新上线!
_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com