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 1
1
using Microsoft . EntityFrameworkCore ;
2
2
3
- using MySql . EntityFrameworkCore . Extensions ;
4
-
5
3
namespace Nullinside . Api . Model . Ddl ;
6
4
7
5
/// <summary>
@@ -41,8 +39,6 @@ public class TwitchBan : ITableModel {
41
39
public void OnModelCreating ( ModelBuilder modelBuilder ) {
42
40
modelBuilder . Entity < TwitchBan > ( entity => {
43
41
entity . HasKey ( e => e . Id ) ;
44
- entity . Property ( e => e . Id )
45
- . UseMySQLAutoIncrementColumn ( "int" ) ;
46
42
entity . Property ( e => e . ChannelId )
47
43
. HasMaxLength ( 255 ) ;
48
44
entity . Property ( e => e . BannedUserTwitchId )
Original file line number Diff line number Diff line change 1
1
using Microsoft . EntityFrameworkCore ;
2
- using Microsoft . EntityFrameworkCore . ChangeTracking ;
3
2
using Microsoft . EntityFrameworkCore . Infrastructure ;
4
3
5
4
using Nullinside . Api . Model . Ddl ;
@@ -77,23 +76,4 @@ public interface INullinsideContext : IAsyncDisposable {
77
76
/// The number of state entries written to the database.
78
77
/// </returns>
79
78
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 ) ;
99
79
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
16
16
{
17
17
#pragma warning disable 612 , 618
18
18
modelBuilder
19
- . HasAnnotation ( "ProductVersion" , "8.0.13 " )
19
+ . HasAnnotation ( "ProductVersion" , "8.0.11 " )
20
20
. HasAnnotation ( "Relational:MaxIdentifierLength" , 64 ) ;
21
21
22
22
modelBuilder . Entity ( "Nullinside.Api.Model.Ddl.DockerDeployments" , b =>
You can’t perform that action at this time.
0 commit comments