From e0561365fd3c1559f142e9d4acb3b493a4c5d45e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Wed, 5 Mar 2025 18:26:35 -0500 Subject: [PATCH 1/2] Revert "feat: exposing entity method" This reverts commit affe196e73bcc8fda5b976c3f497f162ec88b486. --- .../INullinsideContext.cs | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/Nullinside.Api.Model/INullinsideContext.cs b/src/Nullinside.Api.Model/INullinsideContext.cs index deadecf..f75cacf 100644 --- a/src/Nullinside.Api.Model/INullinsideContext.cs +++ b/src/Nullinside.Api.Model/INullinsideContext.cs @@ -1,5 +1,4 @@ using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Infrastructure; using Nullinside.Api.Model.Ddl; @@ -77,23 +76,4 @@ public interface INullinsideContext : IAsyncDisposable { /// The number of state entries written to the database. /// int SaveChanges(); - - /// - /// Gets an for the given entity. The entry provides - /// access to change tracking information and operations for the entity. - /// - /// - /// - /// This method may be called on an entity that is not tracked. You can then - /// set the property on the returned entry - /// to have the context begin tracking the entity in the specified state. - /// - /// - /// See Accessing tracked entities in EF Core for more information and - /// examples. - /// - /// - /// The entity to get the entry for. - /// The entry for the given entity. - EntityEntry Entry(object entity); } \ No newline at end of file From 29c568d16a6eb5ed01b7aa0c756fa3915b1e6cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Wed, 5 Mar 2025 18:27:01 -0500 Subject: [PATCH 2/2] Revert "fix: duplicate insertion issue" This reverts commit 65305af26d08f915a93adba62831f5a55d83c3e7. --- src/Nullinside.Api.Model/Ddl/TwitchBan.cs | 4 ---- .../Migrations/NullinsideContextModelSnapshot.cs | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Nullinside.Api.Model/Ddl/TwitchBan.cs b/src/Nullinside.Api.Model/Ddl/TwitchBan.cs index 5ccfcf9..7ad5cea 100644 --- a/src/Nullinside.Api.Model/Ddl/TwitchBan.cs +++ b/src/Nullinside.Api.Model/Ddl/TwitchBan.cs @@ -1,7 +1,5 @@ using Microsoft.EntityFrameworkCore; -using MySql.EntityFrameworkCore.Extensions; - namespace Nullinside.Api.Model.Ddl; /// @@ -41,8 +39,6 @@ public class TwitchBan : ITableModel { public void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity(entity => { entity.HasKey(e => e.Id); - entity.Property(e => e.Id) - .UseMySQLAutoIncrementColumn("int"); entity.Property(e => e.ChannelId) .HasMaxLength(255); entity.Property(e => e.BannedUserTwitchId) diff --git a/src/Nullinside.Api.Model/Migrations/NullinsideContextModelSnapshot.cs b/src/Nullinside.Api.Model/Migrations/NullinsideContextModelSnapshot.cs index 129f2f5..040f4d1 100644 --- a/src/Nullinside.Api.Model/Migrations/NullinsideContextModelSnapshot.cs +++ b/src/Nullinside.Api.Model/Migrations/NullinsideContextModelSnapshot.cs @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "8.0.13") + .HasAnnotation("ProductVersion", "8.0.11") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("Nullinside.Api.Model.Ddl.DockerDeployments", b =>