ControlId.Net.Push.EntityFrameworkCore 0.9.0-alpha.1

This is a prerelease version of ControlId.Net.Push.EntityFrameworkCore.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package ControlId.Net.Push.EntityFrameworkCore --version 0.9.0-alpha.1
                    
NuGet\Install-Package ControlId.Net.Push.EntityFrameworkCore -Version 0.9.0-alpha.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="ControlId.Net.Push.EntityFrameworkCore" Version="0.9.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ControlId.Net.Push.EntityFrameworkCore" Version="0.9.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="ControlId.Net.Push.EntityFrameworkCore" />
                    
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 ControlId.Net.Push.EntityFrameworkCore --version 0.9.0-alpha.1
                    
#r "nuget: ControlId.Net.Push.EntityFrameworkCore, 0.9.0-alpha.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 ControlId.Net.Push.EntityFrameworkCore@0.9.0-alpha.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=ControlId.Net.Push.EntityFrameworkCore&version=0.9.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ControlId.Net.Push.EntityFrameworkCore&version=0.9.0-alpha.1&prerelease
                    
Install as a Cake Tool

ControlId.Net

An unofficial, fully typed .NET SDK for Control iD hardware: the access control line (iDAccess, iDFlex, iDFace, iDBox, iDUHF) and the REP iDClass time clocks, with an AFD parser for Portaria 671/2021.

SDK .NET não oficial e tipado para equipamentos Control iD: linha de acesso e REP iDClass, com parser de AFD da Portaria 671/2021. Guia completo em português.

Packages

Package Purpose
ControlId.Net AccessClient, RepClient, AFD parser, Push and Monitor models
ControlId.Net.DependencyInjection AddControlIdAccess / AddControlIdRep, many devices from appsettings.json
ControlId.Net.AspNetCore Push, Monitor and Online mode endpoints for ASP.NET Core (net8.0+), closed by default (Bearer token)
ControlId.Net.Push.EntityFrameworkCore Durable Push command queue on EF Core (net10.0)

Quick start

using ControlId.Access;

using var device = new AccessClient("http://192.168.0.129", "admin", "admin");

var id = await device.CreateUserAsync(new AccessUser { Name = "Maria", Registration = "1020" });
await device.OpenDoorAsync(door: 1);

var logs = await device.GetAccessLogsAsync(afterId: 0, limit: 100);
using ControlId.Rep;
using ControlId.Rep.Afd;

// TLS is validated: pin the fingerprint of the self-signed certificate
// (read it once with ControlIdCertificates.GetServerCertificateSha256Async).
using var rep = new RepClient("https://192.168.0.130", mode: RepMode.Portaria671,
    serverCertificateSha256: "AB:CD:EF:...");

AfdFile afd = await rep.GetAfdFileFromNsrAsync(1);
foreach (var punch in afd.Punches)
{
    Console.WriteLine($"{punch.Nsr} {punch.Time:yyyy-MM-dd HH:mm} {punch.EmployeeId}");
}
// ASP.NET Core: callbacks answer 401 without a token; write the same token to the device with ConfigureCallbackSecurityAsync.
builder.Services.AddControlIdMonitor<AccessLogHandler>();
app.MapControlIdMonitor().RequireControlIdToken(callbackToken);

Independent project, not affiliated with Control iD. "Control iD", "iDAccess", "iDFlex", "iDFace" and "iDClass" are trademarks of Control iD. Licensed under MIT.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0-alpha.1 49 11/20/2026
0.9.0-alpha.1 45 11/20/2026
0.8.0-alpha.1 84 11/14/2026