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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Palm.SurrealDB.EntityFrameworkCore.Migrations" Version="0.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Palm.SurrealDB.EntityFrameworkCore.Migrations" Version="0.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Palm.SurrealDB.EntityFrameworkCore.Migrations" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Palm.SurrealDB.EntityFrameworkCore.Migrations --version 0.2.1
                    
#r "nuget: Palm.SurrealDB.EntityFrameworkCore.Migrations, 0.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Palm.SurrealDB.EntityFrameworkCore.Migrations@0.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Palm.SurrealDB.EntityFrameworkCore.Migrations&version=0.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Palm.SurrealDB.EntityFrameworkCore.Migrations&version=0.2.1
                    
Install as a Cake Tool

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 model
  • database.GetSurrealSchemaDiffAsync() — inspect the difference without applying it
  • database.GenerateSurrealSchemaScript() — the SurrealQL that would run
  • optionsBuilder.UseSurrealSchemaSync(...), services.AddEntityFrameworkSurrealDbMigrations()
  • entity.HasSurrealSchemaMode(...) — schemaless by default, per entity

Depends on

  • Palm.SurrealDB.EntityFrameworkCore
  • Palm.SurrealDB.Net.SurrealQL
  • Palm.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

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
0.2.1 110 9/5/2026
0.2.0 115 9/3/2026