コード例 #1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:LicenseLimitModel" /> instances.
        /// </summary>
        /// <param name="licenseId">
        ///     The value which identifies the <see cref="!:LicenseLimitModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:LicenseLimitModel" /> instances that match the specified <paramref name="licenseId" />.
        /// </returns>
        public static IEnumerable <Consensus.Security.LicenseLimit> FetchAllByLicenseId(System.Guid licenseId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(LicenseLimit.FetchAllByLicenseId(site, licenseId));
        }
コード例 #2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(LicenseLimit.GetTableName(site));
        }
コード例 #3
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:LicenseLimitModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:LicenseLimitModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Security.LicenseLimit> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(LicenseLimit.FetchAll(site));
        }
コード例 #4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:LicenseLimitModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:LicenseLimitModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:LicenseLimitModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Security.LicenseLimit FetchById(System.Int32 id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(LicenseLimit.FetchById(site, id));
        }
コード例 #5
0
        /// <summary>
        ///     Creates a new <see cref="!:LicenseLimitModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:LicenseLimitModel" /> instance.
        /// </returns>
        public static Consensus.Security.LicenseLimit Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(LicenseLimit.Create(site));
        }