Skip to content

Make IsAsyncData readonly and use collection initializers #35786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

cincuranet
Copy link
Contributor

@cincuranet cincuranet commented Mar 13, 2025

Small, quality of life, improvement.

@cincuranet cincuranet requested review from a team and Copilot March 13, 2025 18:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request improves code quality by making the IsAsyncData fields readonly and simplifying their initialization with collection initializers.

  • Changed IsAsyncData fields to readonly in multiple test files
  • Updated array initialization syntax to use collection initializers

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/EFCore.Specification.Tests/Query/NorthwindCompiledQueryTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Tests/Storage/RelationalDataReaderTest.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Specification.Tests/Query/NorthwindSqlQueryTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Specification.Tests/ConcurrencyDetectorTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Specification.Tests/Query/PrecompiledQueryRelationalTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.SqlServer.FunctionalTests/SqlServerValueGenerationScenariosTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Specification.Tests/Update/StoreValueGenerationTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Specification.Tests/Update/UpdatesTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.CrossStore.FunctionalTests/QueryTest.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Tests/Storage/RelationalCommandTest.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Tests/Query/Internal/BufferedDataReaderTest.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Specification.Tests/NonSharedModelTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Specification.Tests/Query/QueryTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Cosmos.FunctionalTests/ReloadTest.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Specification.Tests/BulkUpdates/BulkUpdatesTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Relational.Specification.Tests/Migrations/MigrationsInfrastructureTestBase.cs Updated IsAsyncData declaration to readonly using collection initializer
test/EFCore.Cosmos.FunctionalTests/Storage/CosmosDatabaseCreatorTest.cs Updated IsAsyncData declaration to readonly using collection initializer

@cincuranet cincuranet merged commit 43b5f81 into dotnet:main Mar 14, 2025
7 checks passed
@cincuranet cincuranet deleted the readonly branch March 14, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants