I have a LotMaterial and LotAttributes classes.
[code=c#]
public class LotMaterial
{
public LotMaterial() { }
private string _item1;
public string Item1
{
get { return _item1; }
set { _item1 = value; }
}
private string _item2;
public string Item2
{
get { return _item2; }
set { _item2 = value; }
}
}
public class LotAttributes
{
public LotAttributes() {}
private string _item3;
public string Item3
{
get { return _item3; }
set { _item3 = value; }
}
private string _item4;
public string Item4
{
get { return _item4; }
set { _item4 = value; }
}
private string _item5;
public string Item5
{
get { return _item5; }
set { _item5 = value; }
}
private Collection<LotM aterial> _lotmaterial;
public Collection<LotM aterial> LotMaterial
{
get { return _lotmaterial; }
set { _lotmaterial = value; }
}
}
[/code]
In the LotAttributes class, I can have one or more LotMaterial objects.
Is declaring a Collection<LotM aterial> object in the LotAttributes class the right way to do if I need to access the LotMaterial objects in my client application?
Thanks in advance..
-Jan
[code=c#]
public class LotMaterial
{
public LotMaterial() { }
private string _item1;
public string Item1
{
get { return _item1; }
set { _item1 = value; }
}
private string _item2;
public string Item2
{
get { return _item2; }
set { _item2 = value; }
}
}
public class LotAttributes
{
public LotAttributes() {}
private string _item3;
public string Item3
{
get { return _item3; }
set { _item3 = value; }
}
private string _item4;
public string Item4
{
get { return _item4; }
set { _item4 = value; }
}
private string _item5;
public string Item5
{
get { return _item5; }
set { _item5 = value; }
}
private Collection<LotM aterial> _lotmaterial;
public Collection<LotM aterial> LotMaterial
{
get { return _lotmaterial; }
set { _lotmaterial = value; }
}
}
[/code]
In the LotAttributes class, I can have one or more LotMaterial objects.
Is declaring a Collection<LotM aterial> object in the LotAttributes class the right way to do if I need to access the LotMaterial objects in my client application?
Thanks in advance..
-Jan
Comment