Dorssel.EntityFrameworkCore.Sqlite.Timestamp
8.0.2
dotnet add package Dorssel.EntityFrameworkCore.Sqlite.Timestamp --version 8.0.2
NuGet\Install-Package Dorssel.EntityFrameworkCore.Sqlite.Timestamp -Version 8.0.2
<PackageReference Include="Dorssel.EntityFrameworkCore.Sqlite.Timestamp" Version="8.0.2" />
<PackageVersion Include="Dorssel.EntityFrameworkCore.Sqlite.Timestamp" Version="8.0.2" />
<PackageReference Include="Dorssel.EntityFrameworkCore.Sqlite.Timestamp" />
paket add Dorssel.EntityFrameworkCore.Sqlite.Timestamp --version 8.0.2
#r "nuget: Dorssel.EntityFrameworkCore.Sqlite.Timestamp, 8.0.2"
#addin nuget:?package=Dorssel.EntityFrameworkCore.Sqlite.Timestamp&version=8.0.2
#tool nuget:?package=Dorssel.EntityFrameworkCore.Sqlite.Timestamp&version=8.0.2
dotnet-ef-sqlite-timestamp
Extension for Entity Framework (EF) Core 8.0 that adds support for SQLite row versioning ([Timestamp]
attribute).
The implementation is for AnyCPU, and works on all platforms.
Usage
Add a package reference to your project for Dorssel.EntityFrameworkCore.Sqlite.Timestamp
.
In your DbContext
derived class modify the following:
+using Dorssel.EntityFrameworkCore;
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder
.UseSqlite($"Data Source={DbPath}")
+ .UseSqliteTimestamp();
}
This is all you need to support row versioning with SQLite, including support for migrations.
See Native database-generated concurrency tokens; except now you can ignore the part that says it isn't supported with SQLite!
The released binary NuGet packages and the .NET assemblies contained therein have the following properties:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.