Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 public void Delete(UserEntity t)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public UserEntity Add(UserEntity t)
 {
     throw new NotImplementedException();
 }