Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 25, 2012 07:05 PM|LINK
This is my User Table
I need to set the MoneyEarned to 0 and I do not want to change the firstname and lastname that is already stored in the DB, this is my function can you anyone advise me please to rewrite the update function please.
public void UpdateMoneyEarned(User user)
using (var db = new TeachableEntities())
user.MoneyEarned = 0;
var q = db.Users;