allows to specify the type instead.
This commit is contained in:
		
							parent
							
								
									e02752bfa7
								
							
						
					
					
						commit
						019d34bf01
					
				| @ -59,6 +59,23 @@ namespace PoweredSoft.DynamicLinq.Fluent | ||||
|             return this; | ||||
|         } | ||||
| 
 | ||||
|         public SelectBuilder Aggregate(string path, SelectTypes type, string propertyName = null) | ||||
|         { | ||||
|             if (propertyName == null) | ||||
|                 propertyName = path.Split('.').LastOrDefault(); | ||||
| 
 | ||||
|             ThrowIfUsedOrEmpty(propertyName); | ||||
| 
 | ||||
|             Parts.Add(new SelectPart | ||||
|             { | ||||
|                 Path = path, | ||||
|                 PropertyName = propertyName, | ||||
|                 SelectType = type | ||||
|             }); | ||||
| 
 | ||||
|             return this; | ||||
|         } | ||||
| 
 | ||||
|         public SelectBuilder Path(string path, string propertyName = null) | ||||
|         { | ||||
|             if (propertyName == null) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user