select builder started.
This commit is contained in:
		
							parent
							
								
									23d1161667
								
							
						
					
					
						commit
						436bd5ab98
					
				| @ -84,7 +84,7 @@ namespace PoweredSoft.DynamicLinq.Test | ||||
|                 Sales = t.ToList() | ||||
|             });*/ | ||||
| 
 | ||||
|             /* | ||||
|              | ||||
|             .Select(t => | ||||
|             { | ||||
|                 t.PropertyFromKey("TheClientId", "ClientId"); | ||||
| @ -95,7 +95,7 @@ namespace PoweredSoft.DynamicLinq.Test | ||||
|                 t.Sum("NetSales"); | ||||
|                 t.Average("TaxAverage", "Tax"); | ||||
|                 t.ToList("Sales"); | ||||
|             });*/ | ||||
|             }); | ||||
|         } | ||||
| 
 | ||||
|         private object compare(MockSale arg) | ||||
|  | ||||
| @ -1,5 +1,6 @@ | ||||
| using PoweredSoft.DynamicLinq.Fluent; | ||||
| using System; | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Text; | ||||
| @ -33,5 +34,17 @@ namespace PoweredSoft.DynamicLinq | ||||
| 
 | ||||
|         public static IEnumerable<T> ThenByDescending<T>(this IEnumerable<T> list, string path) | ||||
|             => list.AsQueryable().ThenByDescending(path); | ||||
| 
 | ||||
|         public static IQueryable GroupBy<T>(this IEnumerable<T> list, string path) | ||||
|             => list.AsQueryable().GroupBy(typeof(T), path); | ||||
| 
 | ||||
|         public static IQueryable GroupBy(this IEnumerable list, Type type, string path) | ||||
|             => list.AsQueryable().GroupBy(type, path); | ||||
| 
 | ||||
|         public static IQueryable GroupBy<T>(this IEnumerable<T> list, Action<GroupBuilder> callback) | ||||
|             => list.AsQueryable().GroupBy(typeof(T), callback); | ||||
| 
 | ||||
|         public static IQueryable GroupBy(this IEnumerable list, Type type, Action<GroupBuilder> callback) | ||||
|             => list.AsQueryable().GroupBy(type, callback); | ||||
|     } | ||||
| } | ||||
|  | ||||
							
								
								
									
										11
									
								
								PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								PoweredSoft.DynamicLinq/Fluent/Select/SelectBuilder.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Text; | ||||
| 
 | ||||
| namespace PoweredSoft.DynamicLinq.Fluent | ||||
| { | ||||
|     public class SelectBuilder | ||||
|     { | ||||
| 
 | ||||
|     } | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user