/// <summary>
 /// Deprecated Method for adding a new object to the ItemPermissions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToItemPermissions(ItemPermission itemPermission)
 {
     base.AddObject("ItemPermissions", itemPermission);
 }
 /// <summary>
 /// Create a new ItemPermission object.
 /// </summary>
 /// <param name="itemID">Initial value of the ItemID property.</param>
 /// <param name="roleType">Initial value of the RoleType property.</param>
 /// <param name="rolePermission">Initial value of the RolePermission property.</param>
 /// <param name="hasSpecificUserIDPermission">Initial value of the HasSpecificUserIDPermission property.</param>
 public static ItemPermission CreateItemPermission(global::System.Guid itemID, global::System.Byte roleType, global::System.Byte rolePermission, global::System.Boolean hasSpecificUserIDPermission)
 {
     ItemPermission itemPermission = new ItemPermission();
     itemPermission.ItemID = itemID;
     itemPermission.RoleType = roleType;
     itemPermission.RolePermission = rolePermission;
     itemPermission.HasSpecificUserIDPermission = hasSpecificUserIDPermission;
     return itemPermission;
 }