Skip to content
Support of Temporal functionality for EF Core
C#
Branch: master
Clone or download
cpoDesign Update README.md
Fixed nuget icon
Latest commit 17e2013 Dec 28, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
EFCoreTemporalSupport.csproj
EFCoreTemporalSupport.nuspec
EFCoreTemporalSupport.sln
EnableTemporalDataOnTable.cs
LICENSE
README.md

README.md

EFCore.TemporalSupport

An implementation of temporal support for EF Core.

Build version

Badges

Badge type Current status
Build status Build status
NuGet nuget
Open Cover Coverage Status
DepShield Badge DepShield Badge

Guide

The following package supports the following methods:

  • AddAsTemporalTable
  • RemoveAsTemporalTable

These are used to add Temporal support to a specific table. Recommendation is to add a new migration file for instance:

    public partial class <InsertYourDate>_addtemporalsupport : Migration
    {

        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.EnsureSchema(name: <SchemaName>);
            migrationBuilder.AddAsTemporalTable(<TableName>, <SchemaName>);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.EnsureSchema(name: <SchemaName);
            migrationBuilder.RemoveAsTemporalTable(this.TargetModel.FindEntityType(typeof(<ModelType).Name), <SchemaName>);
        }
    }
You can’t perform that action at this time.