Raven.Database.Indexing.FieldsToFetch.CloneWith C# (CSharp) Method

CloneWith() public method

public CloneWith ( string newFieldsToFetch ) : FieldsToFetch
newFieldsToFetch string
return FieldsToFetch
		public FieldsToFetch CloneWith(string[] newFieldsToFetch)
		{
			return new FieldsToFetch(newFieldsToFetch, aggregationOperation, additionalField);
		}

Usage Example

Example #1
0
 protected override IndexQueryResult RetrieveDocument(Document document, FieldsToFetch fieldsToFetch)
 {
     if (fieldsToFetch.IsProjection == false)
     {
         fieldsToFetch = fieldsToFetch.CloneWith(document.GetFields().OfType <Fieldable>().Select(x => x.Name()).ToArray());
     }
     fieldsToFetch.EnsureHasField(Raven.Abstractions.Data.Constants.ReduceKeyFieldName);
     return(base.RetrieveDocument(document, fieldsToFetch));
 }
All Usage Examples Of Raven.Database.Indexing.FieldsToFetch::CloneWith