Exemple #1
0
 public int SaveChanges()
 {
     return(Db.SaveChanges());
 }
        public CommandResponse Commit()
        {
            var rowsAffected = _context.SaveChanges();

            return(new CommandResponse(rowsAffected > 0));
        }
Exemple #3
0
 public Person Create(Person person)
 {
     _context.Add(person);
     _context.SaveChanges();
     return(person);
 }