Skip to content

Commit

Permalink
Merge pull request #249 from louisaxel-ambroise/fix/subscriptions
Browse files Browse the repository at this point in the history
Fix subscriptions with EFCore 7
  • Loading branch information
louisaxel-ambroise authored Nov 10, 2022
2 parents b307f77 + 8e3a978 commit 682ad1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ internal static void Apply(ModelBuilder modelBuilder, DatabaseFacade database)
sensorReport.HasOne(x => x.SensorElement).WithMany(x => x.Reports).HasForeignKey("EventId", "SensorId").OnDelete(DeleteBehavior.Cascade);

var subscription = modelBuilder.Entity<Subscription>();
subscription.ToTable(nameof(Subscription), nameof(EpcisSchema.Subscription));
subscription.ToTable(nameof(Subscription), nameof(EpcisSchema.Subscription), builder => builder.HasTrigger("[Subscription].[SubscriptionInitialRequests]"));
subscription.Property(x => x.Name).IsRequired(true).HasMaxLength(256);
subscription.Property(x => x.QueryName).IsRequired(true).HasMaxLength(256);
subscription.Property(x => x.ReportIfEmpty).IsRequired(true);
Expand Down
2 changes: 1 addition & 1 deletion src/FasTnT.Domain/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ public sealed class Constants

public int MaxEventsCapturePerCall { get; init; } = 500;
public int MaxEventsReturnedInQuery { get; init; } = 20_000;
public string VendorVersion { get; init; } = "2.2.0";
public string VendorVersion { get; init; } = "2.2.1";
}

0 comments on commit 682ad1f

Please sign in to comment.