Comments (5)
- fixed
- updated online doc
- published new new nuget to https://www.nuget.org/packages/System.Linq.Dynamic.Core/1.0.3.2
please verify
from system.linq.dynamic.core.
Hello @StefH,
Thanks for the quick reply and change to the API.
I can see the signature is a little bit different. This is how I use on the original Linq.Dynamic:
System.Linq.Dynamic.DynamicExpression.ParseLambda<Entity, bool>(expression, null)
Where "Entity" is the type of the code-first entity and "expression" is a string with many linq expressions.
Following your API, would this produce the same output?
System.Linq.Dynamic.Core.DynamicExpression.ParseLambda(false, typeof(Entity), typeof(bool), expression, null)
Oh, by the way, after calling that I had to parse a LinqExpression to an Expression using this:
var typedExpression1 = (Expression<Func<Entity, bool>>) Expression.Lambda(expression1, null);
Now it compiles, not sure if it works yet. Need to test it.
Thanks!
from system.linq.dynamic.core.
Correct, I changed the interface and the internal business logic a bit.
When calling the new API, just use
DynamicExpression.ParseLambda(false, typeof(Entity), null, expression)
See https://system-linq-dynamic-core.azurewebsites.net/html/938537c7-8fa2-b300-1f27-5aadcd5440e5.htm for details:
from system.linq.dynamic.core.
Thanks Mate,
I have simplified my call.
Cheers 👍
from system.linq.dynamic.core.
Note that in the latest version, this class has been renamed to DynamicExpressionParser to avoid naming conflicts.
from system.linq.dynamic.core.
Related Issues (20)
- Enhance filtering capabilities using enum namespace string HOT 1
- DateOnly.Parse Is not Supported HOT 4
- Like Operator: Unable to load one or more of the requested types. HOT 2
- Type from registered type has higher preference than input parameter expression with same name
- How can we do string interpolation using $? HOT 3
- Bug: WhereInterpolated() is not working for PropertyNames HOT 1
- Exception when trying to add/subtract types 'DateTime' and 'TimeSpan' HOT 3
- How to get the value of the key, and access its value pair HOT 2
- How to use List<JObject>to complete multiple joins through strings, and how to implement multiple connection conditions? HOT 5
- out keyword is not working with dynamic linq HOT 1
- Unrecognize the Generic Type when parse the lambda expression string HOT 2
- The `DynamicLinqType` attribute can not be added to interfaces. HOT 3
- Collection operation not supported. HOT 1
- System.Linq.Dynamic.Core.Exceptions.ParseException: 'Enum type '..' not found' HOT 3
- An error is reported if the name is different HOT 4
- System.Linq.Dynamic.Core: No applicable method 'ArrayLength' exists in type HOT 1
- Getting Unhandled exception. '.' or '(' or string literal expected (at index 22) with a different propername HOT 1
- The LINQ expression 'InternalDbSet.Count()' could not be translated HOT 3
- Getting exception the binder 'System.Linq.Dynamic.Core.DynamicGetMemberBinder' needs at least one restriction. HOT 5
- Parameters of lambdas in the supplied expression have lower priority than defined types, even when casing differs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from system.linq.dynamic.core.