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