Beispiel #1
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Notes.GetTableName(site));
        }
Beispiel #2
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:NotesModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:NotesModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Common.Notes> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

            return(Notes.FetchById(site, id));
        }
Beispiel #4
0
        /// <summary>
        ///     Creates a new <see cref="!:NotesModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:NotesModel" /> instance.
        /// </returns>
        public static Consensus.Common.Notes Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Notes.Create(site));
        }