public void Update(UserEntity t) { using (this.mEntities = new photoshareEntities()) { user current = this.mEntities.users.FirstOrDefault(x => x.Id == t.Id); this.mEntities.users.Attach(current); user user = Mapper.Map<user>(t); this.mEntities.users.ApplyCurrentValues(user); this.mEntities.SaveChanges(); } }
public void Delete(UserEntity t) { throw new NotImplementedException(); }
public UserEntity Add(UserEntity t) { throw new NotImplementedException(); }