コード例 #1
0
 /// <summary>
 /// Create a new BusinessRule object.
 /// </summary>
 /// <param name="businessRuleID">Initial value of the BusinessRuleID property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static BusinessRule CreateBusinessRule(global::System.Int32 businessRuleID, global::System.Boolean isActive)
 {
     BusinessRule businessRule = new BusinessRule();
     businessRule.BusinessRuleID = businessRuleID;
     businessRule.IsActive = isActive;
     return businessRule;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BusinessRules EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBusinessRules(BusinessRule businessRule)
 {
     base.AddObject("BusinessRules", businessRule);
 }