/// <summary>
 /// Create a new AccessRight object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static AccessRight CreateAccessRight(global::System.Int32 id, global::System.String name)
 {
     AccessRight accessRight = new AccessRight();
     accessRight.Id = id;
     accessRight.Name = name;
     return accessRight;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the AccessRights EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAccessRights(AccessRight accessRight)
 {
     base.AddObject("AccessRights", accessRight);
 }