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. insert with business object

insert with business object

Scheduled Pinned Locked Moved ASP.NET
databasebusinesstutorial
3 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.
  • A Offline
    A Offline
    amina89
    wrote on last edited by
    #1

    Hi, I do not know how to create a business object for inserting data into the database. thank you for showing me the path to follow

    S 1 Reply Last reply
    0
    • A amina89

      Hi, I do not know how to create a business object for inserting data into the database. thank you for showing me the path to follow

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      amina89 wrote:

      create a business object for inserting data into the database

      From what you have written, it looks like you want to use an object to pass on the values to database layer. Design a class, expose the properties associated (using get/set). Create an object of this class in UI layer, set the values of various properties of the object. Pass on this object from UI to Db layer. Get the values from object to set various parameters of Insert/Update query. Execute it.

      A 1 Reply Last reply
      0
      • S Sandeep Mewara

        amina89 wrote:

        create a business object for inserting data into the database

        From what you have written, it looks like you want to use an object to pass on the values to database layer. Design a class, expose the properties associated (using get/set). Create an object of this class in UI layer, set the values of various properties of the object. Pass on this object from UI to Db layer. Get the values from object to set various parameters of Insert/Update query. Execute it.

        A Offline
        A Offline
        amina89
        wrote on last edited by
        #3

        Hi, instead of using gridview to insert student marks (I have hundreds of students) thought I used the Excel: 1) allow managers of each module after authentication to download the excel file (containing the students enrolled in the given module) they advice me to use business objects to Create a business object for inserting data (a series of markes) in database. Serializer a list of this object in XML format # Send it to the internet # Make it open with Excel # Allow to change values # Ask the server to download # The deserialize a list object # Update your database according to this list I dont khnow if this method is better?? thanks

        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