Skip to content

Commit 5168e3e

Browse files
committed
dropped cosmosdb as a sampel target
1 parent 30b1868 commit 5168e3e

6 files changed

Lines changed: 7 additions & 19 deletions

File tree

docs/.vitepress/plugins/expressive-sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export function expressiveSamplePlugin(md: MarkdownIt): void {
149149

150150
// Output tabs
151151
const outputTabs: HighlightedTab[] = []
152-
for (const targetId of ['sqlite', 'postgres', 'sqlserver', 'cosmos', 'mongodb', 'generator']) {
152+
for (const targetId of ['sqlite', 'postgres', 'sqlserver', 'mongodb', 'generator']) {
153153
const target = sample.targets[targetId]
154154
if (target) {
155155
outputTabs.push({

docs/guide/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ExpressiveSharp is provider-agnostic. It layers on top of `IQueryable<T>` and in
1010
- **MongoDB** — via `ExpressiveSharp.MongoDB`, translating to MQL aggregation pipelines
1111
- **Any `IQueryable<T>`** — wrap with `.AsExpressive()` and you get modern syntax on your own provider or any third-party one
1212

13-
The samples throughout these docs show the same query rendered against SQLite, PostgreSQL, SQL Server, Cosmos DB, and MongoDB side by side — so you always see how the construct translates for your target.
13+
The samples throughout these docs show the same query rendered against SQLite, PostgreSQL, SQL Server, and MongoDB side by side — so you always see how the construct translates for your target.
1414

1515
## The Two Problems
1616

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ features:
2727

2828
- icon: "\U0001F310"
2929
title: Provider-Agnostic
30-
details: Works with EF Core (every provider — SQL Server, Postgres, SQLite, Cosmos, …), MongoDB, and any IQueryable. One library, every backend.
30+
details: Works with EF Core (every provider — SQL Server, Postgres, SQLite, MySQL, Oracle, …), MongoDB, and any IQueryable. One library, every backend.
3131

3232
- icon: "\u26A1"
3333
title: Zero Runtime Overhead
@@ -84,7 +84,7 @@ db.Orders
8484

8585
You end up duplicating formulas as inline expressions and writing ugly ternary chains.
8686

87-
**With ExpressiveSharp** — write natural C#. The source generator handles it, and your provider (EF Core / MongoDB / your own `IQueryable`) gets a clean, translatable expression tree. Every doc page's live samples render the same query for SQLite, Postgres, SQL Server, Cosmos, MongoDB, and the generator output side-by-side — so you see exactly how it translates for your stack.
87+
**With ExpressiveSharp** — write natural C#. The source generator handles it, and your provider (EF Core / MongoDB / your own `IQueryable`) gets a clean, translatable expression tree. Every doc page's live samples render the same query for SQLite, Postgres, SQL Server, MongoDB, and the generator output side-by-side — so you see exactly how it translates for your stack.
8888

8989
::: expressive-sample
9090
db.Orders

src/Docs/Playground.Core/Services/Scenarios/WebshopScenario.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static IQueryable Run(IWebshopQueryRoots db)
5252
{
5353
new ScenarioRenderTarget(
5454
Id: "sqlite",
55-
Label: "EF Core + SQLite",
55+
Label: "EF + SQLite",
5656
OutputLanguage: "sql",
5757
Render: static (queryable, _) => queryable.ToQueryString())
5858
{
@@ -61,7 +61,7 @@ public static IQueryable Run(IWebshopQueryRoots db)
6161

6262
new ScenarioRenderTarget(
6363
Id: "postgres",
64-
Label: "EF Core + PostgreSQL",
64+
Label: "EF + PostgreSQL",
6565
OutputLanguage: "sql",
6666
Render: static (queryable, _) => queryable.ToQueryString())
6767
{

src/Docs/Prerenderer/ExpressiveSharp.Docs.Prerenderer.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
VersionOverride="10.0.5" />
1818
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer"
1919
VersionOverride="10.0.5" />
20-
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos"
21-
VersionOverride="10.0.5" />
2220
<PackageReference Include="MongoDB.Driver" />
2321
</ItemGroup>
2422

src/Docs/Prerenderer/SampleRenderer.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ private static WebshopDbContext BuildSqlServerContext() =>
3737
.EnableServiceProviderCaching(false)
3838
.Options);
3939

40-
private static WebshopDbContext BuildCosmosContext() =>
41-
new(new DbContextOptionsBuilder<WebshopDbContext>()
42-
.UseCosmos("AccountEndpoint=https://localhost:8081/;AccountKey=dW5pdHRlc3Q=", "playground")
43-
.UseExpressives()
44-
.EnableServiceProviderCaching(false)
45-
.Options);
46-
4740
private static IWebshopQueryRoots BuildMongoRoots()
4841
{
4942
var db = new MongoClient("mongodb://localhost:27017").GetDatabase("playground");
@@ -152,11 +145,8 @@ public RenderedSample Render(DocSample sample)
152145
if (scenario.Id == "webshop")
153146
{
154147
using var sqlServer = BuildSqlServerContext();
155-
using var cosmos = BuildCosmosContext();
156-
RenderPrerendererTarget(targets, invoke, "sqlserver", "EF Core + SQL Server", "sql",
148+
RenderPrerendererTarget(targets, invoke, "sqlserver", "EF + SQL Server", "sql",
157149
new DbContextRoots(sqlServer), static (q, _) => q.ToQueryString());
158-
RenderPrerendererTarget(targets, invoke, "cosmos", "EF Core + Cosmos DB", "sql",
159-
new DbContextRoots(cosmos), static (q, _) => q.ToQueryString());
160150
RenderPrerendererTarget(targets, invoke, "mongodb", "MongoDB", "javascript",
161151
BuildMongoRoots(), static (q, _) => FormatMongoOutput(q.ToString()!));
162152
}

0 commit comments

Comments
 (0)