Exemplo n.º 1
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:PortalRoleModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:PortalRoleModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Portal.PortalRole> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalRole.FetchAll(site));
        }
Exemplo n.º 2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalRole.GetTableName(site));
        }
Exemplo n.º 3
0
        /// <summary>
        ///     Creates a new <see cref="!:PortalRoleModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:PortalRoleModel" /> instance.
        /// </returns>
        public static Consensus.Portal.PortalRole Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalRole.Create(site));
        }
Exemplo n.º 4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:PortalRoleModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:PortalRoleModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:PortalRoleModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Portal.PortalRole FetchById(System.Int32 id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(PortalRole.FetchById(site, id));
        }