D
daz_oldham
Hi
I was wondering if you could help me - I am looking at creating a C#
Project to be used with my ASP.NET solition (VS2005). What I would
like to do (I believe) is really simple.
I have an 'Order' object, and each 'Order' can have one (and only one)
'OrderLine'. The order line is the item ordered if you like. What I
would like to do is be able to access my 'OrderLine' via an instance of
the 'Order' object.
// i.e.
Order oOrder = new Order(iOrderID);
String sSomething = oOrder.OrderLine.ProductName;
// and also things like
oOrder.OrderLine.Delete();
oOrder.OrderLine.ProductName = "Widget";
Many thanks
Darren
I was wondering if you could help me - I am looking at creating a C#
Project to be used with my ASP.NET solition (VS2005). What I would
like to do (I believe) is really simple.
I have an 'Order' object, and each 'Order' can have one (and only one)
'OrderLine'. The order line is the item ordered if you like. What I
would like to do is be able to access my 'OrderLine' via an instance of
the 'Order' object.
// i.e.
Order oOrder = new Order(iOrderID);
String sSomething = oOrder.OrderLine.ProductName;
// and also things like
oOrder.OrderLine.Delete();
oOrder.OrderLine.ProductName = "Widget";
etc. from my Order object. Can anybody tell me where to begin?From within my 'OrderLine' I would like to be able to access methods
Many thanks
Darren