From dcf4e809e9f03ae674e524e75ee97ddfefeb36c1 Mon Sep 17 00:00:00 2001 From: Alexandros Kritikos Date: Mon, 26 Apr 2021 11:59:11 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Moves=20namespaces=20according?= =?UTF-8?q?=20to=20interface=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApiAuthorizationDbContext.cs | 2 +- .../Extensions/DbContextExtensions.cs | 4 ++-- .../Interceptors/AuditSaveChangesInterceptor.cs | 2 +- .../Interceptors/TimestampSaveChangesInterceptor.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Configuration.Peristence.IdentityServer/ApiAuthorizationDbContext.cs b/src/Configuration.Peristence.IdentityServer/ApiAuthorizationDbContext.cs index 5898ac3..1915761 100644 --- a/src/Configuration.Peristence.IdentityServer/ApiAuthorizationDbContext.cs +++ b/src/Configuration.Peristence.IdentityServer/ApiAuthorizationDbContext.cs @@ -11,7 +11,7 @@ namespace Kritikos.Configuration.Peristence.IdentityServer using IdentityServer4.EntityFramework.Interfaces; using IdentityServer4.EntityFramework.Options; - using Kritikos.Configuration.Persistence.Abstractions; + using Kritikos.Configuration.Persistence.Contracts.Behavioral; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; diff --git a/src/Configuration.Persistence/Extensions/DbContextExtensions.cs b/src/Configuration.Persistence/Extensions/DbContextExtensions.cs index 7c57e71..0df38fb 100644 --- a/src/Configuration.Persistence/Extensions/DbContextExtensions.cs +++ b/src/Configuration.Persistence/Extensions/DbContextExtensions.cs @@ -1,12 +1,12 @@ namespace Kritikos.Configuration.Persistence.Extensions { - using Kritikos.Configuration.Persistence.Abstractions; + using Kritikos.Configuration.Persistence.Contracts.Behavioral; using Microsoft.EntityFrameworkCore; public static class DbContextExtensions { - public static void UpdateConcurrencyToken(this DbContext ctx, IConcurrent entity, byte[] rowVersion) + public static void UpdateConcurrencyToken(this DbContext ctx, IConcurrent entity, TKey rowVersion) => ctx.Entry(entity).Property(x => x.RowVersion).OriginalValue = rowVersion; } } diff --git a/src/Configuration.Persistence/Interceptors/AuditSaveChangesInterceptor.cs b/src/Configuration.Persistence/Interceptors/AuditSaveChangesInterceptor.cs index 3cdd7b4..504c79b 100644 --- a/src/Configuration.Persistence/Interceptors/AuditSaveChangesInterceptor.cs +++ b/src/Configuration.Persistence/Interceptors/AuditSaveChangesInterceptor.cs @@ -5,7 +5,7 @@ namespace Kritikos.Configuration.Persistence.Interceptors using System.Threading; using System.Threading.Tasks; - using Kritikos.Configuration.Persistence.Abstractions; + using Kritikos.Configuration.Persistence.Contracts.Behavioral; using Kritikos.Configuration.Persistence.Services; using Microsoft.EntityFrameworkCore; diff --git a/src/Configuration.Persistence/Interceptors/TimestampSaveChangesInterceptor.cs b/src/Configuration.Persistence/Interceptors/TimestampSaveChangesInterceptor.cs index fb4a51e..851b532 100644 --- a/src/Configuration.Persistence/Interceptors/TimestampSaveChangesInterceptor.cs +++ b/src/Configuration.Persistence/Interceptors/TimestampSaveChangesInterceptor.cs @@ -5,7 +5,7 @@ namespace Kritikos.Configuration.Persistence.Interceptors using System.Threading; using System.Threading.Tasks; - using Kritikos.Configuration.Persistence.Abstractions; + using Kritikos.Configuration.Persistence.Contracts.Behavioral; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Diagnostics;