/// <summary>
        ///     Retrieves a collection of <see cref="!:OpportunityXrefModel" /> instances.
        /// </summary>
        /// <param name="organisationId">
        ///     The value which identifies the <see cref="!:OpportunityXrefModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OpportunityXrefModel" /> instances that match the specified <paramref name="organisationId" />.
        /// </returns>
        public static IEnumerable <Consensus.Sales.OpportunityXref> FetchAllByOrganisationId(System.String organisationId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(OpportunityXref.FetchAllByOrganisationId(site, organisationId));
        }
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

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

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

            return(OpportunityXref.FetchById(site, id));
        }
        /// <summary>
        ///     Creates a new <see cref="!:OpportunityXrefModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:OpportunityXrefModel" /> instance.
        /// </returns>
        public static Consensus.Sales.OpportunityXref Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(OpportunityXref.Create(site));
        }