
After weeks of seeing AC7 code, I have learned a great deal about classes. I never used them before - my limited knowledge of VB.Net made it faster to just write tons of code rather than try wrapping my brain around the class object model concepts.
I needed a way to put all the product template ac_orderinputitem values into a single record for processing by my calculations. I wrote a function, but it pulled each entry separately so it took 9 calls to read one order. Ugly.
So I wrote my first true class for my solunar orders, and it works great.
On to my question...
I can pull up the current customers orders into a collection with...
Code: Select all
Dim _MyOrders As OrderCollection = OrderDataSource.LoadForUser(Token.Instance.UserId)
But how did you construct the OrderCollection class? Is that just another class that sub-classed the Order class and returns List(Of Class)?
My brain isn't wrapping around that part so well. What I ended up doing was...
Code: Select all
Dim _SolunarOrders As List(Of SolunarOrderInputs) = SolunarOrderDataSource.LoadforUser(Token.Instance.UserId)
I know you guys are busy, so if you don't have time that's ok - what I got works but I really see the elegance in your base class designs and I'd like to try imitating that for my stuff. Yes, that was a shameless attempt at flattery to encourage a response
