corpse
Member
Im pretty new on the .net scene, so lemme explain what I wanted to do in VB6 that seems hard to do in .NET.
Im redoing an order entry system, and was going to do it in vb6 with vb6 as the front-end which will exlusively access vb6-created active x dll com objects. These dlls will act as the data store along with their respective methods, perfect example is the Order to Payments relationship...
Orders collection ---> Order object
Order properties:
intOrderNumber, txtCustomerName, CanCancel, Payments
Order methods:
CancelOrder, CompleteOrder
(objPayments) Payments collection ---> Payment object
same as above (kinda) as the payment object will have properties that are actual data from the database or other misc. properties
Now, in the vb6 I would have loaded the data up and simply built up my collections my doing an Add method (into the collection) for each item - it worked great, cuz then in my UI I could call something easy like... objOrder.Payments(1).Validate, and to get the payment ID I could do: objOrder.Payments(1)!guidPaymentTag
But in .net, Im having a real hard time figuring out I can do this stuff using DataSets.. I would still like to have my Orders collection, Order object, LineItems collection and LineItem object (etc...), and in each object have my "data" properties and "other" properties, along with methods..
If I build a DataSet, I dont see how my LineItems or Payments collection can work properly?
<sigh> Thanks for your patience in answering!
Im redoing an order entry system, and was going to do it in vb6 with vb6 as the front-end which will exlusively access vb6-created active x dll com objects. These dlls will act as the data store along with their respective methods, perfect example is the Order to Payments relationship...
Orders collection ---> Order object
Order properties:
intOrderNumber, txtCustomerName, CanCancel, Payments
Order methods:
CancelOrder, CompleteOrder
(objPayments) Payments collection ---> Payment object
same as above (kinda) as the payment object will have properties that are actual data from the database or other misc. properties
Now, in the vb6 I would have loaded the data up and simply built up my collections my doing an Add method (into the collection) for each item - it worked great, cuz then in my UI I could call something easy like... objOrder.Payments(1).Validate, and to get the payment ID I could do: objOrder.Payments(1)!guidPaymentTag
But in .net, Im having a real hard time figuring out I can do this stuff using DataSets.. I would still like to have my Orders collection, Order object, LineItems collection and LineItem object (etc...), and in each object have my "data" properties and "other" properties, along with methods..
If I build a DataSet, I dont see how my LineItems or Payments collection can work properly?
<sigh> Thanks for your patience in answering!