File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed
Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 11using Microsoft . EntityFrameworkCore ;
22
3- using MySql . EntityFrameworkCore . Extensions ;
4-
53namespace Nullinside . Api . Model . Ddl ;
64
75/// <summary>
@@ -41,8 +39,6 @@ public class TwitchBan : ITableModel {
4139 public void OnModelCreating ( ModelBuilder modelBuilder ) {
4240 modelBuilder . Entity < TwitchBan > ( entity => {
4341 entity . HasKey ( e => e . Id ) ;
44- entity . Property ( e => e . Id )
45- . UseMySQLAutoIncrementColumn ( "int" ) ;
4642 entity . Property ( e => e . ChannelId )
4743 . HasMaxLength ( 255 ) ;
4844 entity . Property ( e => e . BannedUserTwitchId )
Original file line number Diff line number Diff line change 11using Microsoft . EntityFrameworkCore ;
2- using Microsoft . EntityFrameworkCore . ChangeTracking ;
32using Microsoft . EntityFrameworkCore . Infrastructure ;
43
54using Nullinside . Api . Model . Ddl ;
@@ -77,23 +76,4 @@ public interface INullinsideContext : IAsyncDisposable {
7776 /// The number of state entries written to the database.
7877 /// </returns>
7978 int SaveChanges ( ) ;
80-
81- /// <summary>
82- /// Gets an <see cref="EntityEntry" /> for the given entity. The entry provides
83- /// access to change tracking information and operations for the entity.
84- /// </summary>
85- /// <remarks>
86- /// <para>
87- /// This method may be called on an entity that is not tracked. You can then
88- /// set the <see cref="EntityEntry.State" /> property on the returned entry
89- /// to have the context begin tracking the entity in the specified state.
90- /// </para>
91- /// <para>
92- /// See <see href="https://aka.ms/efcore-docs-entity-entries">Accessing tracked entities in EF Core</see> for more information and
93- /// examples.
94- /// </para>
95- /// </remarks>
96- /// <param name="entity">The entity to get the entry for.</param>
97- /// <returns>The entry for the given entity.</returns>
98- EntityEntry Entry ( object entity ) ;
9979}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
1616 {
1717#pragma warning disable 612 , 618
1818 modelBuilder
19- . HasAnnotation ( "ProductVersion" , "8.0.13 " )
19+ . HasAnnotation ( "ProductVersion" , "8.0.11 " )
2020 . HasAnnotation ( "Relational:MaxIdentifierLength" , 64 ) ;
2121
2222 modelBuilder . Entity ( "Nullinside.Api.Model.Ddl.DockerDeployments" , b =>
You can’t perform that action at this time.
0 commit comments