mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
workaround EF Core 2.1 issue in Agent
https://stackoverflow.com/questions/50778720/notsupportedexception-value-generation-and-castingconverter-in-ef-core-2-1
This commit is contained in:
parent
9f5fd1f223
commit
7487d7219b
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ public override void Configure(EntityTypeBuilder<Rule> entityTypeBuilder)
|
|||
base.Configure(entityTypeBuilder);
|
||||
entityTypeBuilder.ToTable("rules");
|
||||
entityTypeBuilder.Property(x => x.Id)
|
||||
.HasColumnType("INT UNSIGNED");
|
||||
.HasColumnType("INT"/* UNSIGNED"*/);
|
||||
entityTypeBuilder.Ignore(x => x.ModifiedDateUtc);
|
||||
entityTypeBuilder.Property(x => x.Raw)
|
||||
.HasColumnType("VARCHAR(8192)")
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public override void Configure(EntityTypeBuilder<Snapshot> entityTypeBuilder)
|
|||
base.Configure(entityTypeBuilder);
|
||||
entityTypeBuilder.ToTable("snapshots");
|
||||
entityTypeBuilder.Property(x => x.Id)
|
||||
.HasColumnType("MEDIUMINT UNSIGNED");
|
||||
.HasColumnType("MEDIUMINT"/* UNSIGNED"*/);
|
||||
entityTypeBuilder.Property(x => x.ModifiedDateUtc)
|
||||
.HasDefaultValueSql("CURRENT_TIMESTAMP()");
|
||||
entityTypeBuilder.Property(x => x.HttpStatusCode)
|
||||
|
|
|
|||
Loading…
Reference in a new issue