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

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

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

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

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

            return(CommunicationsRole.Create(site));
        }