In programming language theory,a lambda function is a function defined, and possibly called, without being bound to an identifier.

learn more… | top users | synonyms

1
vote
1answer
79 views

Predicatebuilder group and or queries with inner outer

I've got a pretty straightforward predicate builder query that works well. We have a list of keywords to search on, and we loop through those keywords to see if any of our object properties match up. ...
1
vote
1answer
124 views

create dynamic query in EF in multi layer architecture and repository pattern

i want to create dynamic linq query or dynamic linq or lambda expression. i am using this article for example i want to tell to repository get products that their names start with 'computer' and (and ...
0
votes
1answer
360 views

LINQ Queries with dynamic OrderBy on property and complex object

With the code below, I don't have any problem to sort on FirstName and LastName but I'd like be able to sort on Name and Code too. Is there a solution to sort on a property and this property is a ...
0
votes
1answer
64 views

Linq with reflexion error: Expression LINQ 'Invoke' node is not supported in LINQ to Entities

I'm having troubles dealing with lambda expressions. I'm working with MVC under EF, and I trying to create a "MetaModel" of which every Model will inherits and with it a method to List elements with ...
0
votes
1answer
120 views

C# and SQL recursive searching of a table

I have a db table that consists simply of a column of current ids (the key) and a second columnm with their previous ids. The ids are for a specific object, but they have to change periodically. I ...
1
vote
0answers
36 views

How do I profile Lambda function performance?

In Visual Studio 2012, my program spends about 35% of its time inside a lambda function, but when I try to profile my code (ANALYZE -> Start Performance Analysis) it just says that it's spending 35% ...
0
votes
0answers
5 views

Why does rails scope lambda modify global?

I have an ActiveRecord Scope that takes a value for a lambda function. I only want to assign the result, if the value exists e.g. Controller: @result = @record.relation.in_scope(@param) if @param ...
0
votes
0answers
33 views

How to update the record in linq

I will be having the records for the rows. The records will be like rowid rowname 1 first 1 second 2 third 3 fourth 3 fifth 4 sixth 5 ...
0
votes
0answers
51 views

Updating a Variable also Updates item in Object List<>

Below is the code in which i am trying to get an item from the list into the variable "timetableDetail" timetableDetail = (From ttdItem In ITempTimeTableDetailItem ...
0
votes
0answers
113 views

Handling OData any() operation using JavaScript

I am handling OData filtering by converting filters to JavaScript expressions and evaluating them against my Data. All is well so far where I had flat Data Structures. Now, I am having a collection ...
0
votes
0answers
138 views

Using lambda function in MVC3 to populate a field from one view model with the value from another

I have a model which contains view models for each view. This model is held in session and is initialised when application starts. I need to be able to populate a field from one view model with the ...
0
votes
0answers
290 views

Custom htmlhelper for Telerik CurrencyTextBoxFor - how to resolve type issue?

We built some HtmlHelpers that leverage the Telerik MVC extensions. One of the reasons we do this is to easily get our preferred layout for a tag, which is the label on top of the tag. The Telerik ...
0
votes
0answers
91 views

iterating through var object Linq To Entities FunctionImport

I added a Store Procedure to a Entity model . Store Procedure returns multiple rows var result = entities.spGetFunctionImport(.... ); var resultlist = result.Select( x => new myObject() { ...
0
votes
0answers
157 views

JQuery Template Tags use with Lambda Expressions under Html Helper Extensions in Razor

I am trying to use JQuery Template tags like below: var element1 = '@Html.TextBoxFor(m=>m.{{=key}})'; and var element1 = '@Html.TextBoxFor(m=>m.${key})'; Either way, I am getting ...
-1
votes
0answers
7 views

Anonymous Method in Object initializer

I am creating a quiz in which have followign class Quiz with properties CorrectOption, WrongOption1, WrongOption2, WrongOption3. in its DTO i have the List<String> Options that will contain ...

1 2
15 30 50 per page