예제 #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();
 }