zzz projects Dynamic LINQ
Home
Documentation GitHub Knowledge Base  Help & Donate
Online Examples
  • Home
  • Documentation
  • GitHub
  • Knowledge Base
  • Help & Donate
  • Online Examples
  •   Download  

Dynamic LINQ - Knowledge Base (KB)

24 results in tag: lambda

lambdas expressions generated dynamically + linq + OrderByDescending

how can I create a dynamic lambda expression to pass to use in my orderby function inside linq?...I basically want transform ...queryResults.OrderByDescending();... in ...queryResults.OrderByDescending(myCustomGeneratedLambdaExp);... where ...myCustomGene...
c# dynamic-linq lambda linq
asked by byte_slave

LINQ Querying an Entity with Dynamic Field Names

I have created a dynamic search screen in ASP.NET MVC. I retrieved the field names from the entity through reflection so that I could allow the user to choose which fields they wanted to search on instead of displaying all fields in the view....When the ...
c# dynamic-linq expression-trees lambda linq-to-entities
asked by Scott Lance

Linq: Dynamic Query Construction: the query is constructed on the client side.

I've been following with great interest the converstaion here:...Construct Query with Linq rather than SQL strings...with regards to constructing expression trees where even the table name is dynamic....Toward that end, I've created a Extension method, ad...
dynamic-linq expression-trees lambda linq linq-to-entities
asked by donundeen

Using unknown types in DynamicExpression

If anyone is very familar with the Linq.Dynamic namespace I could use some help -- couldn't find any indepth resources on the internet....Basically I'm using DynamicExpression.ParseLambda to create an expression where the type is not known at compile time...
c# dynamic-linq expression-trees lambda linq
asked by sean

How can I write an OrderBy Specification using the Dynamic Expression API?

I figured out how to do a predicate from a string supplied by a client based on ...Dynamic Linq... (this is wrapped in a Specification object):...return System.Linq.Dynamic.DynamicExpression.ParseLambda<TE, bool> (filter.ToString(), arguments.ToAr...
c# dynamic-linq lambda repository specification-pattern
asked by Zachary Scott

"Contains" lambda expression

I use a dynamic filter, that filters a collection using object properties, operators and values. Now, if the property is a string, the operator is "contains" and the value is "word", the filtered objects containing the "world" should be filtered according...
.net dynamic-linq lambda
asked by serhio

Interval grouping using dynamic linq (DateTime, Numeric)

I search everywhere and didn`t find anwser for this question. I want to group by intervals (DateTime, Numeric) in Dynamic linq (the data will be crated dynamically so i must use dynamic linq)...Lets assume that we have such data:...ID|Date|Price 1|2010-1...
c#-4.0 dynamic-linq expression-trees lambda linq
asked by WebDeveloper

Perform a query on an object having members of type "dynamic" using Dynamic Linq.

I am trying to use a dynamic linq query to retrieve an IEnumerable<T> from an object collection (Linq to Object), each of the objects in the collection have an internal collection with another set of objects where the data is stored, these values are acce...
c# dynamic-linq expression-trees lambda
asked by Darsegura

In C#, how do you make a dynamic lambda-based Linq expression from a string?

I'm having some difficulty creating Lambda-based Linq expressions from a string. Here is my basic case using this sample object/class:...public class MockClass { public string CreateBy { get; set; } } ...Basically I need to convert a string like this...
c# dynamic-linq expression-trees lambda linq
asked by jon333

dynamic linq expression using select in .NET

I want to dynamically add .Select statements, but the compiler will only allow me to build these statements inside the current scope. I am aware of linqkit, which could be a solution, but i dont want to add any external functionallity. How do i avoid this...
.net c# dynamic-linq lambda linq
asked by Zeezer

How to create a property (collection) expression selector from a string?

I wanted to transform the string "...Employee.Orders.OrderID..." in the ...linq expression...: "...employee.Orders.Select(order => order.OrderID)..."....I already know how to do this in simple properties such as "Employee.FirstName" my question is how to ...
c# dynamic-linq expression-trees lambda linq
asked by Lukian

Dynamic expression parsing in localized environment

So I'm trying to parse a simple arithmetic dynamic expression using System.Linq.Dynamic. This runs fine when executed in an English environment where the CurrentCulture is English-US (and the decimal separator is a plain "." dot). Trying to run the code i...
dynamic-linq lambda linq-expressions localization
asked by alrotem

How to resolve Dynamic LINQ ParseException: "Identifier Expected"

I am getting generic error message System.Linq.Dynamic.ParseException: Identifier expected....What should I check in order to resolve it? The error isn't very detailed....I did check the source and the selector params from the ParseLambda method and T-SQL...
dynamic-linq export-to-excel lambda mvcjqgrid parsing
asked by mitaka

Add second group by key field to existing Lambda Expression

I have a Group by expression that I am dynamically creating for use in a LINQ query. Currently, to construct the expression, I use the following code: ...var arg = Expression.Parameter(typeof(T), helper.getName()); var prop = Expression.Property(arg, "c...
c# dynamic-linq lambda linq
asked by mjsalinger

Lambda Expressions and Extension methods

So I have an extension method defined like so... public static String FormatString(this String source, String formatString, Object[] parameters) { return String.Format(formatString, parameters); } ...and from investigation, I have come...
c# dynamic-linq extension-methods lambda linq
asked by Kobojunkie

Get an Entity Object with its child Entity with a condition (using Dynamic Linq)

This question is continuation of ...Getting Count() property in Dynamic Lambda Expression...I had asked if we can put Count() Method in dynamic lambda expression. I could do it using ...Dynamic Expression API.... Answer provided by - xmojmr...But recently...
asp.net-mvc-4 c# dynamic-linq entity-framework-5 lambda
asked by dPatel1582

Dynamic Lambda condition on nested array

I want to perform a Dynamic Lambda in a collection with an array of strings[] on it:...public class ClassStudentsViewModel { public string[] Disciplines { get; set; } public TeacherName { get; set; } } ...This is what I'm trying:...The ...source..
c# dynamic-linq lambda linq
asked by DontVoteMeDown

Dynamic LINQ: Comparing Nested Data With Parent Property

I've a class with following structure:... public class BestWayContext { public Preference Preference { get; set; } public DateTime DueDate { get; set; } public List<ServiceRate> ServiceRate { get; set; } } public class ServiceRate { publi...
c#-4.0 dynamic-linq expression lambda linq
asked by Arun Singh

How to GroupBy a part of DateTime using System.Dynamic.LINQ library

I have tables that contain a lot of rows, each record is excellent by whom and on what date was added. I want to group all records, based on AddedBy and AddedOn fields....The problem is that the dates are in full including the miliseconds and I only want ...
dynamic-linq lambda linq sql-server vb.net
asked by Haim Tabak

Dynamic LINQ query to get Field value from Database

is it possible?...Public String Get_Filed_By_Id(string table_Name,String Field_Name,string PK_val) { string strRes=""; using(mydbcontext db=new mydbcontext()) { var x=db.table_Name.Where(p=>p.Id=PK_val).FirstOrDefault().Field_Name; ...
c# dynamic-linq lambda linq
asked by A_Sk

Page 1 of 2
  • 1
  • 2
  • ยป

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!