/// <summary>
 /// Create a new Permission object.
 /// </summary>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="accessMask">Initial value of the AccessMask property.</param>
 /// <param name="widgetID">Initial value of the WidgetID property.</param>
 public static Permission CreatePermission(global::System.String userID, global::System.Int32 accessMask, global::System.Int32 widgetID)
 {
     Permission permission = new Permission();
     permission.UserID = userID;
     permission.AccessMask = accessMask;
     permission.WidgetID = widgetID;
     return permission;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Permissions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPermissions(Permission permission)
 {
     base.AddObject("Permissions", permission);
 }