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; }
/// <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); }
IndexingPolicy.Update.IWithCompositeIndexList <UpdateParentT> IndexingPolicy.Update.IWithCompositeIndexList <UpdateParentT> .WithCompositePath(string path, CompositePathSortOrder order) { return(this.WithCompositePath(path, order)); }
IndexingPolicy.Definition.IWithCompositeIndexList <DefinitionParentT> IndexingPolicy.Definition.IWithCompositeIndexList <DefinitionParentT> .WithCompositePath(string path, CompositePathSortOrder order) { return(this.WithCompositePath(path, order)); }
public IndexingPolicyImpl <ParentImplT, IParentT, DefinitionParentT, UpdateParentT> WithCompositePath(string path, CompositePathSortOrder order) { return(this.WithCompositePath(new CompositePath(path: path, order: order))); }