Endatix.Persistence.SqlServer 0.7.0

dotnet add package Endatix.Persistence.SqlServer --version 0.7.0
                    
NuGet\Install-Package Endatix.Persistence.SqlServer -Version 0.7.0
                    
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="Endatix.Persistence.SqlServer" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Endatix.Persistence.SqlServer" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Endatix.Persistence.SqlServer" />
                    
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 Endatix.Persistence.SqlServer --version 0.7.0
                    
#r "nuget: Endatix.Persistence.SqlServer, 0.7.0"
                    
#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 Endatix.Persistence.SqlServer@0.7.0
                    
#: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=Endatix.Persistence.SqlServer&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Endatix.Persistence.SqlServer&version=0.7.0
                    
Install as a Cake Tool

Endatix.Persistence.SqlServer

Adds support for using Microsoft SQL Server database persistence with the Endatix Platform. This package is crucial for applications that require SQL Server as the primary database.

Endatix Platform is an open-source data collection and management library for .NET. It is designed for building secure, scalable, and integrated form-centric applications that work with SurveyJS. Endatix empowers business users with advanced workflows, automation, and meaningful insights.

Installation:

dotnet add package Endatix.Persistence.SqlServer

More Information:

For detailed installation instructions, please visit Endatix Installation Guide.

Migrations Guide

Run the commands from the oss folder.

Always use Endatix.WebHost as startup project, and this provider-specific persistence project as migrations project.

Add migration

App entities (AppDbContext)
dotnet ef migrations add <MigrationName> \
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context AppDbContext \
  --output-dir Migrations/AppEntities
Identity entities (AppIdentityDbContext)
dotnet ef migrations add <MigrationName> \
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context AppIdentityDbContext \
  --output-dir Migrations/AppIdentity

Remove last migration

  1. First list your migrations with dotnet ef migrations list to check if the migration you want to remove must be unapplied on your local DB
dotnet ef migrations list \
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context <AppDbContext|AppIdentityDbContext>
  1. If required update to the migrations via dotnet ef database update
dotnet ef database update <PreviousMigrationName> \       
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context <AppDbContext|AppIdentityDbContext> 
  1. Remove the last migration
dotnet ef migrations remove \
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context <AppDbContext|AppIdentityDbContext> 

Apply migrations

App entities (AppDbContext)
dotnet ef database update \
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context AppDbContext
Identity entities (AppIdentityDbContext)
dotnet ef database update \
  --startup-project src/Endatix.WebHost \
  --project src/Endatix.Persistence.SqlServer \
  --context AppIdentityDbContext

Setup

  1. Create SQL Server in Docker - docker run --name sqlserver_db -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=admin@2admin" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
  2. Update appSettings.Development.json by adding this connection string
"DefaultConnection": "Server=localhost;Initial Catalog=endatix-db; User ID=sa; Password=admin@2admin; TrustServerCertificate=True",
"DefaultConnection_DbProvider": "SqlServer" // Config first db provider setter. Not required if you configure the DB Provider via c# code.
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 (2)

Showing the top 2 NuGet packages that depend on Endatix.Persistence.SqlServer:

Package Downloads
Endatix.Hosting

Package Description

Endatix.Extensions.Hosting

Provides useful extension methods and utilities for hosting the Endatix Platform. It simplifies the configuration and deployment. Endatix Platform is an open-source data collection and management library for .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 201 7/8/2026
0.6.0 836 2/16/2026
0.5.1 410 12/5/2025
0.5.0 217 11/28/2025
0.4.2 2,211 6/27/2025
0.4.1 230 5/9/2025
0.4.0 228 4/25/2025
0.3.0 257 3/27/2025
0.2.0 245 2/10/2025
0.1.0 2,945 8/23/2024