mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
specify UseMySqlIdentityColumn() explicitly
since upgrading to EF 2.1, EF wants to create a migration dropping this unless it is explicitly defined.
This commit is contained in:
parent
8f983fcbaf
commit
c8a0ad94b9
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ public class BaseEntityTypeConfiguration<TEntity> : IEntityTypeConfiguration<TEn
|
|||
public virtual void Configure(EntityTypeBuilder<TEntity> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.Property(x => x.Id)
|
||||
.UseMySqlIdentityColumn()
|
||||
.HasColumnType("SMALLINT UNSIGNED");
|
||||
entityTypeBuilder.Property(x => x.CreatedDateUtc)
|
||||
.HasColumnType("TIMESTAMP")
|
||||
|
|
|
|||
Loading…
Reference in a new issue