expression Questions

5

Solved

I'm trying to create a generic function to help me select thousands of records using LINQ to SQL from a local list. SQL Server (2005 at least) limits queries to 2100 parameters and I'd like to sele...
Sair asked 20/2, 2009 at 1:27

1

Solved

This was asked to me in an interview, Given a list of integer numbers, a list of symbols [+,-,*,/] and a target number N, provide an expression which evaluates to N or return False if that is not...
Damarisdamarra asked 27/1, 2014 at 16:24

3

Solved

I have an instance of the following: Expression<Func<IRequiredDate, bool>> I wish to convert it to an instance of the following, so it can be used to run a query in Entity Framework:...
Quoit asked 16/1, 2014 at 6:38

2

Solved

For example: Html.TextBoxFor(x => x.ModelProperty) If I were to get an expression like this as a method argument, how would I get the referenced property from the expression? My experience wi...
Tirol asked 16/1, 2014 at 20:42

2

Solved

Suppose the following data frame, I want to factorized var, and label numbers to Greek letters, from 1 to alpha, 2 to beta, 3 to gamma. But the following code does not work. var<-c(1,1,2,2,3,3...
Audiology asked 14/1, 2014 at 20:5

1

Solved

I need to add a line break but I am struggling with the atop function in expression(). The main is the part I would like to break into two lines. > plot (DAC~Chlo,data=brazilw, pch=15,col="red...
Marcellamarcelle asked 11/1, 2014 at 19:40

5

Solved

I have to show columns: - send - receive - cancelled In a report column by checking a value from DB which is "Status". So if Status equals 1 then send,=2 receive , = 3 cancelled. The te...
Chamfer asked 13/1, 2011 at 7:17

2

Solved

I wanted to create a fluent interface that can be used like so: void Main() { ModelStateMappings.MapDomainModel<Book>().MapViewModel<BookViewModel>() .Properties(book => book.Auth...
Sprinkler asked 6/1, 2014 at 22:40

1

Solved

I'm looking for regex to extract json string from text. I have the text below, which contains JSON string(mTitle, mPoster, mYear, mDate) like that: {"999999999":"138138138","020202020202":{"...
Klondike asked 4/1, 2014 at 4:5

3

Solved

There is one interesting concept in F# language: Object Expressions (F#) http://msdn.microsoft.com/en-us/library/dd233237.aspx Definition: An object expression is an expression that creates a...
Chlodwig asked 20/12, 2013 at 11:48

2

Solved

I want to add some subscripts and superscripts to my graph labels. I've try expression, but it doesn't work as I wish with new lines (\n). I've try to fix it using paste, but it doesn't work....
Galloway asked 12/12, 2013 at 16:50

1

Solved

i want to achieve an title in R plot as the following: title = "The significance level you entered is alpha = 0.05 which is often used." In order to get this I split the whole text in little par...
Katy asked 11/12, 2013 at 23:30

1

Solved

I am creating a field from tables with our shoretel phone system and i am intergrating reports via SSRS and i need some assisstance with an expression. =if(Fields!ExitReason.Value 7, then if (Fiel...

2

Solved

I want to create a dynamic linq expression for sql IN clause in EF 6.0 with code first approch. Note that i am new to Expressions. What i want to achive is select * from Courses where CourseId in ...
Slickenside asked 23/10, 2013 at 6:38

2

Solved

So, I've been reading this, and found out about sending values to generator. And now I'm kinda confused. Is yield a statement or an expression? It doesn't use parenthesis syntax, like functions, s...
Floris asked 22/11, 2013 at 10:22

1

Solved

I would like to use together a variable (here the vector element "type") and a unit containing a superscript (here m^2) inside n axis label. data <- list(houses = data.frame(surface = c(450, 3...
Rowland asked 15/11, 2013 at 16:0

2

Solved

I'm currently learning about operators and expressions in C# and I understood that if I want to increment the value of a variable by 5, I can do it in two different ways: a = a + 5 and a += 5. Appa...
Fredrick asked 5/11, 2013 at 16:48

1

Solved

Dear Spirit Qi experts. I have played around with the MiniC example in Spirit Qi, and have noticed an issue with "empty" AST nodes in the expression grammar. It will generate "expression" nodes th...
Veii asked 31/10, 2013 at 13:2

3

Solved

Imagine the following table structure --------- TableA ID Name --------- TableB ID TableAID --------- TableC ID TableBID I want to define a function that joins these three tables and accepts a...
Pubilis asked 28/10, 2013 at 20:35

1

Solved

Expression<Func<MyObject, string>> fn1 = x => x.PossibleSubPath.MyStringProperty; Expression<Func<string, bool>> fn2 = x => x.Contains("some literal"); Is there a w...
Triquetrous asked 17/10, 2013 at 17:24

0

I have a fallowing method in my Repository class: public virtual IEnumerable<T> GetAll(Expression<Func<T, bool>> where = null, Func<IQueryable<T>, IOrderedQueryable<T...
Hornbill asked 14/10, 2013 at 14:46

1

Solved

Does an assignment operator in c++ returns an rvalue or an lvalue? And if it is an lvalue, which of the two arguments will be incremented here? (a = b)++
Syphilology asked 8/10, 2013 at 9:59

2

Solved

Why isn't it possible to declare a class constant filed of type Lambda Expression. I want Something like this: class MyClass { public const Expression<Func<string,bool>> MyExpr = (str...
Sandpaper asked 5/10, 2013 at 12:53

1

Solved

The MSDN documentation states: Expression.Quote Method Creates a UnaryExpression that represents an expression that has a constant value of type Expression. I've been able to build predi...
Fujio asked 29/6, 2010 at 5:43

1

Solved

I am trying to write a linq to entity extension method that takes a Func to select a property Id and compare it against a list of ids. Classes public class A { public int AId { get; set; } } pu...
Mode asked 27/9, 2013 at 13:50

© 2022 - 2024 — McMap. All rights reserved.