dynamic-linq Questions
2
I am using Northwind Customers Table where I fill the dataset and get the datatable.
I am trying to use dynamic linq and want to select columnName dynamically
var qry = MyDataTable.AsEnumerable()...
Morrow asked 13/4, 2011 at 15:55
8
Solved
I'm trying to call a function in a dynamic linq select statement, but im getting error:
No property or field 'A' exists in type 'Tuple2'
Example code:
void Main()
{
var a = new Tuple<int, i...
Sarcenet asked 19/8, 2013 at 12:3
12
Solved
Consider we have this class :
public class Data
{
public string Field1 { get; set; }
public string Field2 { get; set; }
public string Field3 { get; set; }
public string Field4 { get; set; }
...
Penumbra asked 13/5, 2013 at 7:37
8
Solved
I'm using the dynamic LINQ library by Scott Guthrie together with Entity Framework and C#.
I have to build my where string into a variable based on several factors and then pass the string variabl...
Reputation asked 2/1, 2013 at 17:19
4
Solved
I am trying to get following code working , This was working fine for SQL Server, but since I changed to use MySQL, it is not working.
records.Content = db.areas
.Where(x => x.Name.Contains(fi...
Heligoland asked 27/6, 2016 at 13:23
3
Solved
I have an ad-hoc reporting system; I have no compile-time knowledge of the source type of queries or of the required fields. I could write expression trees at runtime using the System.Linq.Expressi...
Stichometry asked 15/3, 2020 at 11:50
3
Solved
Today we currently have a statement like this:
var Query = (from dp in db.Patients
select dp);
var UserID = User.Identity.GetUserId();
if (User.IsInRole("Administrator"))
{
Query = Query.Where...
Klinges asked 10/6, 2014 at 12:27
2
Solved
In my project there is a Logic evaluation section, it take input as a string which contains logical expressions (true/false) .
I want to evaluate this string and return a final Boolean value.
st...
Sublittoral asked 12/12, 2011 at 15:11
4
So I want to make a general sorter for my data. I have this code to get data from the database which will extract the data only which contains value.
using System.Linq.Dynamic;
public static IQue...
Cavetto asked 8/4, 2019 at 4:53
4
Say I have a DataTable with four columns, Company (string), Fund (string), State (string), Value(double):
table1.Rows.Add("Company 1","Fund 1","NY",100));
table1.Rows.Add("Company 2","Fund 1","C...
Dilatory asked 23/9, 2009 at 12:31
2
What is the difference between System.Linq.Dynamic.Core and System.Linq.Dynamic? I am currently using System.Linq.Dynamic and it does not contain support for Select and SelectMany (among other exte...
Leigha asked 17/11, 2016 at 16:16
1
Solved
Using the System.Linq.Dynamic (managed here https://github.com/kahanu/System.Linq.Dynamic ), I am trying to capture the DayOfWeek field found on the DateTime for aggregation purposes using Entity F...
Frady asked 26/10, 2016 at 20:29
3
Solved
I need to translate the following LINQ query to Dynamic LINQ that accepts several grouping columns based on user input. Basically I have a bunch of dropdownlists that apply groupings and I don't wa...
Messing asked 14/10, 2010 at 0:9
1
Solved
I am trying to find a way to move UTC time to Local before doing a sql grouping. I am using the System.Linq.Dynamic (managed here https://github.com/kahanu/System.Linq.Dynamic ). It works great for...
Karyokinesis asked 6/10, 2016 at 20:30
5
Solved
I want to run dynamic linq with a string where clause like this:
query = db.Customers.Where("Categories.Any(Code == 'Retail')");
Customer entity has collection of categories
class Customer
{
p...
Plasia asked 10/6, 2016 at 5:18
1
I've created a generic expression builder that builds up a predicate based on collection of conditions. I pass the predicate to a generic method in the repository. I think that expression builder w...
Lining asked 11/2, 2016 at 17:55
4
Solved
Wikipedia states that the Specification Pattern is where business logic can be recombined by chaining the business logic together using boolean logic. With respect to selecting filtering objects fr...
Mayer asked 21/9, 2009 at 11:28
4
Solved
I am using Dynamic Linq to perform some queries (sorry but it's my only option). As a result, I am getting an IQueryable instead of an IQueryable<T>. In my case, I want an IQueryable<Thing...
Eyot asked 4/12, 2015 at 22:6
5
I have been searching for some days for solid information on the possibility to accelerate LINQ queries using a GPU.
Technologies I have "investigated" so far:
Microsoft Accelerator
Cudafy
Brah...
Egalitarian asked 15/2, 2012 at 17:43
4
Solved
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...
Bountiful asked 26/8, 2015 at 6:50
3
Solved
I'm building a datagrid library that works on generic IQueryable data sources. At the bottom selected columns will have aggregates: sum, average, count etc.
I can compute the sum/average/count ind...
Moss asked 7/2, 2014 at 17:59
2
Solved
I am working on the application where user can select columns he/she wants to see on the screen and which columns to group by or aggregate. So, in my LINQ section I should actually pass variables t...
Dyslogistic asked 30/10, 2014 at 16:57
5
Solved
I need to create a dynamic linq expression for a dynamic search.The basic search is working but it fails to work with collection.
I am able to get the book's title and author but fails to get the r...
Secondbest asked 18/5, 2014 at 2:42
2
Solved
I'm trying to create a dynamic WHERE clause with LINQ. I have a working example but I'm worried that it's not safe from SQL injection.
The following LINQ code:
var oQuery = _db.People.Where("Firs...
Soloist asked 5/2, 2014 at 16:18
4
Solved
I'm looking to use LINQ for some searching routines and wanted to have some dynamic where clauses. So, for example, if a user wants to search by city or search by state, I would have a dynamic LINQ...
Fash asked 2/3, 2011 at 3:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.