المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : The update() of my application doesnt perform any updates or deals with concurrency!



C# Programming
11-13-2009, 04:24 AM
Hi,

I have written an application to perform a simple CRUD operation i've used MVC design pattern... DAL was designed using the wizard.
I was able preserve the olds value of teh fields of EMployee class using a seperatemethod

PreserveOldValues()
{
//code
}

in the SearchByIndex() i call the fill method and i used the data to initialize the current Employee object also i preserve those values using
PreserveOldValues() the i call update() and internall i pass the preserved values......

However it doesnt do concurrencies and updates... please review my code and give me guidance to fix the problem....

all the required file are in attachemtn and database is in Data.zip file

link to the file:
http://go.internet.com/?id=474X1058&url=http%3A%2F%2Fwww.quickfilepost.com%2Fdownload.do%3Fget%3Df339aa16aea48e9873fa9d9a48747a0e[^ (http://go.internet.com/?id=474X1058&url=http%3A%2F%2Fwww.quickfilepost.com%2Fdownload.do%3Fget%3Df339aa16aea48e9873fa9d9a48747a0e)]

cheers