Palm.SurrealDB.EntityFrameworkCore.Migrations
0.2.1
dotnet add package Palm.SurrealDB.EntityFrameworkCore.Migrations --version 0.2.1
NuGet\Install-Package Palm.SurrealDB.EntityFrameworkCore.Migrations -Version 0.2.1
<PackageReference Include="Palm.SurrealDB.EntityFrameworkCore.Migrations" Version="0.2.1" />
<PackageVersion Include="Palm.SurrealDB.EntityFrameworkCore.Migrations" Version="0.2.1" />
<PackageReference Include="Palm.SurrealDB.EntityFrameworkCore.Migrations" />
paket add Palm.SurrealDB.EntityFrameworkCore.Migrations --version 0.2.1
#r "nuget: Palm.SurrealDB.EntityFrameworkCore.Migrations, 0.2.1"
#:package Palm.SurrealDB.EntityFrameworkCore.Migrations@0.2.1
#addin nuget:?package=Palm.SurrealDB.EntityFrameworkCore.Migrations&version=0.2.1
#tool nuget:?package=Palm.SurrealDB.EntityFrameworkCore.Migrations&version=0.2.1
Palm.SurrealDB.EntityFrameworkCore.Migrations
Convergent schema management for the SurrealDB EF Core provider.
This is not EF migrations. Every load-bearing EF migrations type lives in
Microsoft.EntityFrameworkCore.Relational, which this provider does not take a dependency on, so
there is no __EFMigrationsHistory, no snapshot file, and no Up/Down. Instead the model is
diffed against the live server's own INFO output and converged: desired schema from IModel,
actual schema parsed by SurqlParser, difference emitted as DEFINE/REMOVE statements.
Part of the Palm.SurrealDB ecosystem for SurrealDB 3.x.
Installation
dotnet add package Palm.SurrealDB.EntityFrameworkCore.Migrations
Targets net10.0. The package is proprietary and sets
PackageRequireLicenseAcceptance, so NuGet prompts before installing — see LICENSE.
Nothing is on NuGet.org until the first release runs; see
docs/RELEASING.md.
Provides
database.EnsureSurrealSchemaAsync()— converge the server to the modeldatabase.GetSurrealSchemaDiffAsync()— inspect the difference without applying itdatabase.GenerateSurrealSchemaScript()— the SurrealQL that would runoptionsBuilder.UseSurrealSchemaSync(...),services.AddEntityFrameworkSurrealDbMigrations()entity.HasSurrealSchemaMode(...)— schemaless by default, per entity
Depends on
Palm.SurrealDB.EntityFrameworkCorePalm.SurrealDB.Net.SurrealQLPalm.SurrealDB.Net.Abstractions
Notes
Tables are never dropped by a sync. A table present on the server and absent from the model is reported as externally managed, not removed. Destructive field operations are policy-gated and throw by default.
Documentation
README— the ecosystem overview and package map- the documentation site — articles and full API reference
LESSONS-LEARNED.md— every known limitation, with a reproduction
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Palm.SurrealDB.EntityFrameworkCore (>= 0.2.1)
- Palm.SurrealDB.Net.Abstractions (>= 0.2.1)
- Palm.SurrealDB.Net.SurrealQL (>= 0.2.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Palm.SurrealDB.EntityFrameworkCore.Migrations:
| Package | Downloads |
|---|---|
|
Palm.SurrealDB.EntityFrameworkCore.Design
Design-time services (dotnet ef) for the SurrealDB EF Core provider's convergent schema management. |
GitHub repositories
This package is not used by any popular GitHub repositories.