R
Ronald S. Cook
I think I've been doing something wrong (i.e. not best practice)
From my class, I've been returning properties and methods ok.. in OO fashion
to the client.
However, I've been returning a list of that class as a Dataset. Shouldn't I
be sending it as an array of that object or similar somehow? What would
that syntax look like?
Here is what I currently have:
public class Merchant
{
private DataTable _MerchantList;
public DataTable MerchantList
{
get { return _MerchantList; }
set { _MerchantList = value; }
}
private Guid _MerchantId;
public Guid MerchantId
{
get { return _MerchantId; }
set { _MerchantId = value; }
}
private String _MerchantName;
public String MerchantName
{
get { return _MerchantName; }
set { _MerchantName = value; }
}
etc...
Thanks,
Ron
From my class, I've been returning properties and methods ok.. in OO fashion
to the client.
However, I've been returning a list of that class as a Dataset. Shouldn't I
be sending it as an array of that object or similar somehow? What would
that syntax look like?
Here is what I currently have:
public class Merchant
{
private DataTable _MerchantList;
public DataTable MerchantList
{
get { return _MerchantList; }
set { _MerchantList = value; }
}
private Guid _MerchantId;
public Guid MerchantId
{
get { return _MerchantId; }
set { _MerchantId = value; }
}
private String _MerchantName;
public String MerchantName
{
get { return _MerchantName; }
set { _MerchantName = value; }
}
etc...
Thanks,
Ron