Browse Source

Add RuleType in MarketingContext

pull/223/head
Christian Arenas 7 years ago
parent
commit
6613a9e1eb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Services/Marketing/Marketing.API/Infrastructure/MarketingContext.cs

+ 3
- 3
src/Services/Marketing/Marketing.API/Infrastructure/MarketingContext.cs View File

@ -64,9 +64,9 @@
.IsRequired();
builder.HasDiscriminator<int>("RuleTypeId")
.HasValue<UserProfileRule>((int)RuleTypeEnum.UserProfileRule)
.HasValue<PurchaseHistoryRule>((int)RuleTypeEnum.PurchaseHistoryRule)
.HasValue<UserLocationRule>((int)RuleTypeEnum.UserLocationRule);
.HasValue<UserProfileRule>(RuleType.UserProfileRule.Id)
.HasValue<PurchaseHistoryRule>(RuleType.PurchaseHistoryRule.Id)
.HasValue<UserLocationRule>(RuleType.UserLocationRule.Id);
builder.Property(r => r.Description)
.HasColumnName("Description")


Loading…
Cancel
Save