Exemple #1
0
        /// <summary>
        ///     Checks if the related article is already linked to the Parent article.
        /// </summary>
        /// <param name="articleId">
        ///     Parent Article ID.
        /// </param>
        /// <param name="relatedArticleId">
        ///     Related Article ID.
        /// </param>
        /// <param name="articleXrefId">
        ///     ArticleXref ID.
        /// </param>
        /// <returns>
        ///     Whether the related article is already linked or not.
        /// </returns>
        public static System.Boolean CheckIfRelatedArticleExist(System.String articleId, System.String relatedArticleId, System.String articleXrefId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Articlexref.CheckIfRelatedArticleExist(site, articleId, relatedArticleId, articleXrefId));
        }
Exemple #2
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:ArticlexrefModel" /> instances.
        /// </summary>
        /// <param name="relArticleId">
        ///     The value which identifies the <see cref="!:ArticlexrefModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:ArticlexrefModel" /> instances that match the specified <paramref name="relArticleId" />.
        /// </returns>
        public static IEnumerable <Consensus.Document.Articlexref> FetchAllByRelArticleId(System.Int32 relArticleId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Articlexref.FetchAllByRelArticleId(site, relArticleId));
        }
Exemple #3
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

            return(Articlexref.FetchById(site, id));
        }
Exemple #5
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:ArticlexrefModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:ArticlexrefModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Document.Articlexref> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Articlexref.FetchAll(site));
        }
Exemple #6
0
        /// <summary>
        ///     Creates a new <see cref="!:ArticlexrefModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:ArticlexrefModel" /> instance.
        /// </returns>
        public static Consensus.Document.Articlexref Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Articlexref.Create(site));
        }