Exemplo n.º 1
0
        /// <summary>
        /// Execute a Fluent Query.
        /// </summary>
        /// <typeparam name="TEntity"></typeparam>
        /// <param name="organizationService"></param>
        /// <returns></returns>
        public static IExecutableFluentQuery <TEntity> Query <TEntity>(this IOrganizationService organizationService) where TEntity : Entity, new()
        {
            _ = organizationService ?? throw new ArgumentNullException(nameof(organizationService));

            var query = new ExecutableFluentQuery <TEntity>(organizationService);

            return(query);
        }
        /// <summary>
        /// Execute a Fluent Query.
        /// </summary>
        /// <typeparam name="E"></typeparam>
        /// <param name="organizationService"></param>
        /// <returns></returns>
        public static IExecutableFluentQuery <E> Query <E>(this IOrganizationService organizationService) where E : Entity, new()
        {
            var query = new ExecutableFluentQuery <E>(organizationService);

            return(query);
        }