Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Create object from a database

Create object from a database

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasesales
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MrColeyted
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • M MrColeyted

      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

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups