I would like to ask a theoretical question. If I have, for example, the following C# code in Page_load: cars = new carsModel.carsEntities(); var mftQuery = from mft in cars.Manufacturers where mft.StockHeaders.Any(sh=> sh.StockCo...
I am calling my database which contains a datetime datatype. The date looks like this: 2005-05-23 16:06:00.000 I would like to display this in a table when a user selects a certain item from a list. I call my controller action and return Json of al...
Let me explain more: we know that map function in jQuery acts as .Select() (as in LINQ). $("tr").map(function() { return $(this).children().first(); }); // returns 20 tds now the question is how can we have .SelectMany() in jQuery? $(...
I was wondering how can we write a jquery statement to get the max value of a property of matched elements. in LINQ we say something like this: var maxHeight = list.Max(a=> a.Height); what is the best way to do this in jquery? as an example...
I have an object in the below format and I need to get all values from the Price property at all levels of the object. var o = { Id: 1, Price: 10, Attribute: { Id: 1, Price: 2, Modifier: { Id: 34,...
This might seems like an easy question but I'm struggling with the linqjs syntax. Given the following basic JSON: { "DateEvent": "2013-04-23 14:00:00Z", "DateRecord": "2013-04-23 14:00:00Z",...
I'm using this library: jsinq. I want to create a new object using subqueries. For example, in .NET LINQ, I could do something like this: from a in Attendances where a.SomeProperty = SomeValue select new { .Property1 = a.Property1, .Pr...
Is it possible to use a predicate expression as a parameter for an HTTPGET request (to a mvc api controller). Background: I`m trying to build a car rental web application. using MSsql for db, EntityFramework (code-first), a repository for (generic)...
This question already has answers here:...
I'm trying to make a simple script in vb that will transform a string "These are my characters" into this "tHeSe ArE mY cHaRaCtErS" It seemed simple at first, I created a userform and with 2 textboxes (input and output) and a but...
©2020 All rights reserved.