المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : VB type collections in C#



C# Programming
10-20-2009, 07:00 AM
I put a message on this board a couple of hours ago, but I can't see it so I think I might have been bumped. anyway, I'll try again.
I'm a very experienced (20Yrs +) VB developer, and have used classes and collections so much that I raise them without thinking of how I do them. now I'm trying to transfer to C# I'm trying to find a way of doing the same thing. I have an inventory table consisting of the following fields:
ID - int
SKU - string
Description - string
Unit - string
QtyOnSite - double
ValOnSite - double
I can raise an inventory class, but now i want to read all the information from a sqlserver table into a collection of type inventory. Could any of you wizards give me a clue as to how to do this please?
Chiefy