Пример #1
0
 public PetType AddPetType(PetType type)
 {
     ctx.Attach(type).State = EntityState.Added;
     ctx.SaveChanges();
     return(type);
 }
Пример #2
0
 public Color AddColor(Color color)
 {
     ctx.Attach(color).State = EntityState.Added;
     ctx.SaveChanges();
     return(color);
 }
Пример #3
0
 public Owner AddOwner(Owner owner)
 {
     ctx.Attach(owner).State = EntityState.Added;
     ctx.SaveChanges();
     return(owner);
 }
Пример #4
0
 public User AddUser(User user)
 {
     ctx.Attach(user).State = EntityState.Added;
     ctx.SaveChanges();
     return(user);
 }