Create object from a database
-
Hello all. This question deals with some ADO.NET, in addition to ASP.NET. I am creating a website in which a user will be able to customize clothing (hats, t shirts, etc.). I will have a database that stores images, colors, etc. as well as customer info. I will need to be able use the fields from my database (color, size, image, etc.) in order to create a product. Can anyone help me out, or point me in the direction of some good resources that may help to shed some light on my problem. Any help would be greatly appreciated.
"If you don't know where you're going, you'll probably end up somewhere else." Yogi Berra
-
Hello all. This question deals with some ADO.NET, in addition to ASP.NET. I am creating a website in which a user will be able to customize clothing (hats, t shirts, etc.). I will have a database that stores images, colors, etc. as well as customer info. I will need to be able use the fields from my database (color, size, image, etc.) in order to create a product. Can anyone help me out, or point me in the direction of some good resources that may help to shed some light on my problem. Any help would be greatly appreciated.
"If you don't know where you're going, you'll probably end up somewhere else." Yogi Berra
It's easy, you create a "Product" class and fill it with values fetched from database. Alternatively you can use some OR/M tools which does this.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions