/// <summary>
 /// Deprecated Method for adding a new object to the OrderRights EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderRights(OrderRight orderRight)
 {
     base.AddObject("OrderRights", orderRight);
 }
 /// <summary>
 /// Create a new OrderRight object.
 /// </summary>
 /// <param name="ruleId">Initial value of the RuleId property.</param>
 /// <param name="entityType">Initial value of the EntityType property.</param>
 /// <param name="categoryType">Initial value of the CategoryType property.</param>
 public static OrderRight CreateOrderRight(global::System.Int32 ruleId, global::System.Int32 entityType, global::System.Int32 categoryType)
 {
     OrderRight orderRight = new OrderRight();
     orderRight.RuleId = ruleId;
     orderRight.EntityType = entityType;
     orderRight.CategoryType = categoryType;
     return orderRight;
 }