docs(191): per-provider reference samples#209
Merged
Conversation
…firebird/snowflake)
Adds samples/provider-{postgres,mysql,oracle,firebird,snowflake} - minimal EF
Core reference samples with committed generated code + EfcptEnabled=false so
CI builds them with no live DB. provider-snowflake is entities-only since no
first-party EF Core runtime provider exists for Snowflake. Wires all five into
the samples-build CI job and documents them in provider-support.md and
samples/README.md.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Code Coverage |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #209 +/- ##
==========================================
+ Coverage 84.93% 92.19% +7.26%
==========================================
Files 93 93
Lines 4832 4832
Branches 746 620 -126
==========================================
+ Hits 4104 4455 +351
+ Misses 429 377 -52
+ Partials 299 0 -299
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
samples/provider-{postgres,mysql,oracle,firebird,snowflake}— minimal EF Core reference samples with committed generated code +EfcptEnabled=falseso CI builds them with no live DB.EfcptProvider, configuresEfcptEnabledto auto-disable when noEfcptConnectionStringis set, and references the real EF Core runtime provider package so the committedGenerated/AppDbContext.cs+Generated/Entities/*.csreference code actually compiles.provider-mysqlpinsMicrosoft.EntityFrameworkCore/Pomelo.EntityFrameworkCore.MySqlto the 9.x line since Pomelo has no EF Core 10 release yet (documented in its README).provider-snowflakeis entities-only — no first-party EF Core runtime provider exists for Snowflake, so itsAppDbContexthas entity classes/DbSet<T>but noOnConfiguring/UseXcall (documented in its README).nuget.configuses<clear/>+../../artifactslocal feed + nuget.org, matching the existing sample convention.Generated/folder from compilation so it doesn't collide withefcpt's live output.samples-buildCI job's sample list (.github/workflows/ci.yml).docs/user-guide/provider-support.mdandsamples/README.md.Part of #191.
Test plan
dotnet pack src/JD.Efcpt.Build/JD.Efcpt.Build.csproj -c Release -o ./artifactsthen, for each of the 5 new samples,dotnet restore <sample>/EntityFrameworkCoreProject --source nuget.org --source ./artifacts+dotnet build <sample>/EntityFrameworkCoreProject -p:EfcptEnabled=false— 0 errors, 0 warnings, no database, for all 5.sln(matching the CIsamples-buildjob's exact invocation pattern)dotnet build JD.Efcpt.Build.sln -c Debug— 0 errors (main solution unaffected, no new project references added to it)samples-buildjob green on this PR🤖 Generated with Claude Code