/// <summary> /// Inserts a list of entity and returns true if successful. /// </summary> /// <typeparam name="T">The type of entity to insert.</typeparam> /// <param name="entitiesToInsert">The IEnumerable list of Entity to insert.</param> /// <returns> /// True if records are inserted. /// </returns> public async Task <bool> InsertListAsync <T>(IEnumerable <T> entitiesToInsert) where T : class => await ExecuteInternalAsync( () => SharedConnection.InsertListAsync(entitiesToInsert, _transaction, OneTimeCommandTimeout ?? CommandTimeout), true);