/// <summary> /// Retrieves a collection of <see cref="!:PackProductModel" /> instances. /// </summary> /// <param name="packId"> /// The value which identifies the <see cref="!:PackProductModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PackProductModel" /> instances that match the specified <paramref name="packId" />. /// </returns> public static IEnumerable <Consensus.Document.PackProduct> FetchAllByPackId(System.String packId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PackProduct.FetchAllByPackId(site, packId)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PackProduct.GetTableName(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:PackProductModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:PackProductModel" /> instances. /// </returns> public static IEnumerable <Consensus.Document.PackProduct> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PackProduct.FetchAll(site)); }
/// <summary> /// Retrieves a specific <see cref="!:PackProductModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:PackProductModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:PackProductModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Document.PackProduct FetchById(System.Int32 id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PackProduct.FetchById(site, id)); }
/// <summary> /// Creates a new <see cref="!:PackProductModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:PackProductModel" /> instance. /// </returns> public static Consensus.Document.PackProduct Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(PackProduct.Create(site)); }