Add RuleType in MarketingContext
This commit is contained in:
parent
8d170fe83f
commit
4a60d97d4d
@ -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…
x
Reference in New Issue
Block a user