/// <summary>
 /// Deprecated Method for adding a new object to the rights EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTorights(rights rights)
 {
     base.AddObject("rights", rights);
 }
 /// <summary>
 /// Create a new rights object.
 /// </summary>
 /// <param name="ri_id">Initial value of the ri_id property.</param>
 /// <param name="ri_name">Initial value of the ri_name property.</param>
 /// <param name="ri_date_inserted">Initial value of the ri_date_inserted property.</param>
 /// <param name="ri_us_id_inserted">Initial value of the ri_us_id_inserted property.</param>
 public static rights Createrights(global::System.Int32 ri_id, global::System.String ri_name, global::System.DateTime ri_date_inserted, global::System.Int32 ri_us_id_inserted)
 {
     rights rights = new rights();
     rights.ri_id = ri_id;
     rights.ri_name = ri_name;
     rights.ri_date_inserted = ri_date_inserted;
     rights.ri_us_id_inserted = ri_us_id_inserted;
     return rights;
 }