//--------------------------------------------------------------------------------------------------------------------- /// <summary>Creates a new Privilege instance representing the privilege with the specified identifier.</summary> /// <param name="context">The execution environment context.</param> /// <param name="identifier">The unique identifier of the privilege.</param> /// <returns>The created Privilege object.</returns> public static Privilege FromIdentifier(IfyContext context, string identifier) { Privilege result = new Privilege(context); result.Identifier = identifier; result.Load(); return(result); }
//--------------------------------------------------------------------------------------------------------------------- /// <summary>Creates a new Privilege instance representing the privilege with the specified ID.</summary> /// <param name="context">The execution environment context.</param> /// <param name="id">The database ID of the privilege.</param> /// <returns>The created Privilege object.</returns> public static Privilege FromId(IfyContext context, int id) { Privilege result = new Privilege(context); result.Id = id; result.Load(); return(result); }