/// <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);
 }
 /// <summary>
 /// Create a new Permission object.
 /// </summary>
 /// <param name="permissionId">Initial value of the PermissionId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="category">Initial value of the Category property.</param>
 /// <param name="isVisible">Initial value of the IsVisible property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="changed">Initial value of the Changed property.</param>
 public static Permission CreatePermission(global::System.Int32 permissionId, global::System.String name, global::System.String description, global::System.String category, global::System.Boolean isVisible, global::System.DateTime created, global::System.DateTime changed)
 {
     Permission permission = new Permission();
     permission.PermissionId = permissionId;
     permission.Name = name;
     permission.Description = description;
     permission.Category = category;
     permission.IsVisible = isVisible;
     permission.Created = created;
     permission.Changed = changed;
     return permission;
 }