示例#1
0
            public CompositePath(
                string path,
                CompositePathSortOrder compositePathSortOrder = CompositePathSortOrder.Ascending)
            {
                if (path == null)
                {
                    throw new ArgumentNullException($"{nameof(path)} must not be null.");
                }

                this.Path = path;
                this.CompositePathSortOrder = compositePathSortOrder;
            }
示例#2
0
        /// <summary>
        /// Add a path to the current <see cref="CompositePath"/> definition with a particular <see cref="CompositePathSortOrder"/>.
        /// </summary>
        /// <param name="path">Property path for the current definition. Example: /property</param>
        /// <param name="sortOrder"><see cref="CompositePathSortOrder"/> to apply on the path.</param>
        /// <returns>An instance of <see cref="CompositeIndexFluentDefinition{T}"/>.</returns>
        public virtual CompositeIndexFluentDefinition <T> Path(
            string path,
            CompositePathSortOrder sortOrder)
        {
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException(nameof(path));
            }

            this.compositePaths.Add(new CompositePath()
            {
                Path = path, Order = sortOrder
            });
            return(this);
        }
示例#3
0
 IndexingPolicy.Update.IWithCompositeIndexList <UpdateParentT> IndexingPolicy.Update.IWithCompositeIndexList <UpdateParentT> .WithCompositePath(string path, CompositePathSortOrder order)
 {
     return(this.WithCompositePath(path, order));
 }
示例#4
0
 IndexingPolicy.Definition.IWithCompositeIndexList <DefinitionParentT> IndexingPolicy.Definition.IWithCompositeIndexList <DefinitionParentT> .WithCompositePath(string path, CompositePathSortOrder order)
 {
     return(this.WithCompositePath(path, order));
 }
示例#5
0
 public IndexingPolicyImpl <ParentImplT, IParentT, DefinitionParentT, UpdateParentT> WithCompositePath(string path, CompositePathSortOrder order)
 {
     return(this.WithCompositePath(new CompositePath(path: path, order: order)));
 }