public async Task <bool> SaveAll() { // Asagiya >0 ekledik ki eger 0dan buyuk sayida save yaparsa true donsun. Yoksa false donsun ve bu sayede Task<bool> donebilsin return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { return(await _context.SaveChangesAsync() > 0); // if this returns more than 0 it means save is done if its = 0 , nothing saved so false }
async Task <bool> IDatingRepository.SaveAll() { return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { return(await _context.SaveChangesAsync() > 0); //Si el resultado de Save es 0 o menor que 0 (no ha grabado) devuelve un false }
public async Task <bool> SaveAll() { // if this return more than 0 we return true return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { return(await _context.SaveChangesAsync() > 0); //if returns more than 0, it saved stuff, else return false }
public async Task <bool> saveAll() { //if its equal to 0 than nothing is saved to database so we return false (no changes) else return true return(await context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { // it returns true if there is 1 change or more return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> CompleteAsync() { return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { // Returns true if saves were made, returns false if no saves where done return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { // if something is saved in the DB then returns the count of saved records // if saved records are more than 0 then return true else false return(await _context.SaveChangesAsync() > 0); }
public async Task <bool> SaveAll() { int v = await _context.SaveChangesAsync(); return(v > 0); }
public async Task <bool> SaveAll() { //throw new System.NotImplementedException(); return(await _context.SaveChangesAsync() > 0); }
/// <summary> /// This method calls EF change tracker, sees all tracked changes /// Saves all tracked changes to the DB /// </summary> /// <returns>Returs bool True = Tracked changes saved to the DB /// -or- False= Nothing saved</returns> public async Task <bool> SaveAll() { //SaveChanges() returns an int of how many changes saved to the DB // return(await _context.SaveChangesAsync() > 0); }