What is the difference between IRepository.Add and IRepository.Update in SubSonic3 SimpleRepository?
The difference between Add and Update in SubSonic3 SimpleRepository
subsonicsubsonic3
subsonicsubsonic3
What is the difference between IRepository.Add and IRepository.Update in SubSonic3 SimpleRepository?
Best Answer
Add should perform a sql Insert whereas Update should perform a sql Update. So Add is for new objects i.e. without a primary key value assigned.