/// <summary> /// Initializes a new instance of the <see cref="EMailMessageAntiSpamRule"/> class. /// </summary> /// <param name="row">The row.</param> private EMailMessageAntiSpamRule(EMailMessageAntiSpamRuleRow row) { _srcRow = row; }
public static int Create(bool Accept, EMailMessageAntiSpamRuleType Type, string Key, string Value, int Weight) { EMailMessageAntiSpamRuleRow newRow = new EMailMessageAntiSpamRuleRow(); newRow.Accept = Accept; newRow.RuleType = (int)Type; newRow.Key = Key; newRow.Value = Value; newRow.Weight = Weight; newRow.Update(); return newRow.PrimaryKeyId; }