Db is a DataContext file (Linq to SQL class).
db.Users is the Users table
User user = db.Users.First(p => p.ID == id); // gets the user from the db and put it into a User class
UpdateModel() is a MVC function which updates a specific class from a collection of names and values
http://msdn.microsoft.com/
Main Topics
Browse All Topics





by: sedgwickPosted on 2009-11-04 at 01:34:26ID: 25737657
what's the implementation of db.Users?
is it property which get users table from DB?
what's the implementation of UpdateModel()?