示例#1
0
 public Owner Create(Owner owner)
 {
     _context.Attach(owner).State = EntityState.Added;
     _context.SaveChanges();
     return(owner);
 }
 public Pet Create(Pet pet)
 {
     _context.Attach(pet).State = EntityState.Added;
     _context.SaveChanges();
     return(pet);
 }
示例#3
0
 public User Create(User user)
 {
     _context.Attach(user).State = EntityState.Added;
     _context.SaveChanges();
     return(user);
 }
示例#4
0
 public Color Create(Color color)
 {
     _context.Attach(color).State = EntityState.Added;
     _context.SaveChanges();
     return(color);
 }