We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d170fe commit 4a60d97Copy full SHA for 4a60d97
1 file changed
src/Services/Marketing/Marketing.API/Infrastructure/MarketingContext.cs
@@ -64,9 +64,9 @@ void ConfigureRules(EntityTypeBuilder<Rule> builder)
64
.IsRequired();
65
66
builder.HasDiscriminator<int>("RuleTypeId")
67
- .HasValue<UserProfileRule>((int)RuleTypeEnum.UserProfileRule)
68
- .HasValue<PurchaseHistoryRule>((int)RuleTypeEnum.PurchaseHistoryRule)
69
- .HasValue<UserLocationRule>((int)RuleTypeEnum.UserLocationRule);
+ .HasValue<UserProfileRule>(RuleType.UserProfileRule.Id)
+ .HasValue<PurchaseHistoryRule>(RuleType.PurchaseHistoryRule.Id)
+ .HasValue<UserLocationRule>(RuleType.UserLocationRule.Id);
70
71
builder.Property(r => r.Description)
72
.HasColumnName("Description")
0 commit comments