Exemplo n.º 1
0
        /// <summary>
        /// Retrieves the publication object having identifier <paramref name="Id"/> from the database.
        /// </summary>
        /// <param name="Id">The identifier of the publication.</param>
        /// <returns>The semi-populated publication entity if exists, or null.</returns>
        /// <remarks>The object based attributes of the entity that are persisted as XML are not populated by default. In order to fully populate the entity, call the <see cref="Materialize"/> method.</remarks>
        public Publication GetPublication(Int64 Id)
        {
            Publication p = PublicationRepo.Get(Id);

            return(p);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Retrieves all publication object <paramref name="Id"/> from the database.
 /// </summary>
 /// <param name="Id">The identifier of the publication.</param>
 /// <returns>The semi-populated publication entity if exists, or null.</returns>
 /// <remarks>The object based attributes of the entity that are persisted as XML are not populated by default. In order to fully populate the entity, call the <see cref="Materialize"/> method.</remarks>
 public IEnumerable <Publication> GetPublication()
 {
     return(PublicationRepo.Get());
 }