Skip to content

Commit

Permalink
DynamicLinqCustomTypeProvider RestrictOrderByToPropertyOrField set to…
Browse files Browse the repository at this point in the history
… false
  • Loading branch information
enchev committed Jan 27, 2025
1 parent ecc403c commit a390658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Radzen.Blazor/DynamicLinqCustomTypeProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ class DynamicLinqCustomTypeProvider : IDynamicLinqCustomTypeProvider
static DynamicLinqCustomTypeProvider()
{
System.Linq.Dynamic.Core.ParsingConfig.Default.AllowEqualsAndToStringMethodsOnObject = true;
System.Linq.Dynamic.Core.ParsingConfig.Default.RestrictOrderByToPropertyOrField = false;
}

static readonly HashSet<Type> empty = [];
public HashSet<Type> GetCustomTypes() => empty;
public Dictionary<Type, List<MethodInfo>> GetExtensionMethods() => new Dictionary<Type, List<MethodInfo>>();
public Type ResolveType(string typeName) => throw new NotSupportedException();
public Type ResolveTypeBySimpleName(string simpleTypeName) => throw new NotSupportedException();
public static ParsingConfig ParsingConfig = new() { CustomTypeProvider = new DynamicLinqCustomTypeProvider(), AllowEqualsAndToStringMethodsOnObject = true };
public static ParsingConfig ParsingConfig = new() { CustomTypeProvider = new DynamicLinqCustomTypeProvider(), AllowEqualsAndToStringMethodsOnObject = true, RestrictOrderByToPropertyOrField = false };
}
}
2 changes: 1 addition & 1 deletion Radzen.Blazor/Radzen.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<IsPackable>true</IsPackable>
<PackageId>Radzen.Blazor</PackageId>
<Product>Radzen.Blazor</Product>
<Version>5.9.3</Version>
<Version>5.9.4</Version>
<Copyright>Radzen Ltd.</Copyright>
<Authors>Radzen Ltd.</Authors>
<Description>Radzen Blazor is a set of 90+ free native Blazor UI controls packed with DataGrid, Scheduler, Charts and robust theming including Material design and Fluent UI.</Description>
Expand Down

0 comments on commit a390658

Please sign in to comment.