/// <summary> /// Retrieves a collection of <see cref="!:UserPermissionModel" /> instances. /// </summary> /// <param name="principalId"> /// The value which identifies the <see cref="!:UserPermissionModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:UserPermissionModel" /> instances that match the specified <paramref name="principalId" />. /// </returns> public static IEnumerable <Consensus.Security.UserPermission> FetchAllByPrincipalId(System.Int32 principalId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(UserPermission.FetchAllByPrincipalId(site, principalId)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(UserPermission.GetTableName(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:UserPermissionModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:UserPermissionModel" /> instances. /// </returns> public static IEnumerable <Consensus.Security.UserPermission> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(UserPermission.FetchAll(site)); }
/// <summary> /// Retrieves a specific <see cref="!:UserPermissionModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:UserPermissionModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:UserPermissionModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Security.UserPermission FetchById(System.Int32 id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(UserPermission.FetchById(site, id)); }
/// <summary> /// Creates a new <see cref="!:UserPermissionModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:UserPermissionModel" /> instance. /// </returns> public static Consensus.Security.UserPermission Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(UserPermission.Create(site)); }