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

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

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

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

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

            return(OrganisationAddress.Create(site));
        }