Click here to Skip to main content
15,896,526 members
Articles / Web Development / ASP.NET

3tier Architecture using insert update delete

Rate me:
Please Sign up or sign in to vote.
2.33/5 (2 votes)
19 Sep 2012CPOL 0   3  
this is a great artical will helps you click herehttp://www.dotnetfunda.com/articles/article71.aspx[^]

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
20 Sep 2012Dylan Morley
Generating unique IDs in this context is the job of the database. You shouldn't be trying to manually create the prod_id valueYou haven't mentioned what database you are using, I'm going to assume SQL Server.* You probably have a 'Products' table or something like that. If prod_id is the...
Please Sign up or sign in to vote.
19 Sep 2012mohit jain 3 alternatives  
I am using 3 tier architecture for using insert update delete operations..i want to generate number for prod_id in insert operation.plz reply anyone
Please Sign up or sign in to vote.
19 Sep 2012DhavalBhattC#
you can do this by two way 1 ) store your prod_id in global class and increment it by one before insert 2 ) pass your all data(without prod_id ) to database and after that find max existing prod_id from database and increment there in procedure although first method is work fine but...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions