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/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 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 =>