Пример #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();
     }
 }
Пример #2
0
 public void Delete(UserEntity t)
 {
     throw new NotImplementedException();
 }
Пример #3
0
 public UserEntity Add(UserEntity t)
 {
     throw new NotImplementedException();
 }