/// <summary> /// Inserts a list of entity and returns true if successful. /// </summary> /// <typeparam name="T">The type of entity to update.</typeparam> /// <param name="entitiesToUpdate">The IEnumerable list of Entity to update.</param> /// <param name="columnsToUpdate">The list of columns to updates.</param> /// <returns> /// True if records are updated. /// </returns> public async Task <bool> UpdateListAsync <T>(IEnumerable <T> entitiesToUpdate, IEnumerable <string> columnsToUpdate) where T : class => await ExecuteInternalAsync( () => SharedConnection.UpdateListAsync(entitiesToUpdate, columnsToUpdate, _transaction, OneTimeCommandTimeout ?? CommandTimeout), true);