linq
LINQ VB how to check for duplicates in a list of objects
I have a list of objects, each with 2 relevant开发者_高级运维 properties: \"ID\" and \"Name\". Lets call the list \"lstOutcomes\".[详细]
2023-04-12 03:13 分类:问答Entity Framework LINQ - How to perform an alphabetical string comparison e.g. Where Name > "Bob"
In TSQL I can do this: select * from Person where Name > \'Bob\' How do I do this with an entity framework LINQ query?[详细]
2023-04-12 02:22 分类:问答Generic collection fill by var value
In my code, I need help to put result value into oList NorthwindDataContext db = new NorthwindDataCo开发者_Go百科ntext();[详细]
2023-04-12 01:53 分类:问答Upgrading to Entity Framework from Linq to SQL [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-12 01:45 分类:问答Filtering whole of hierarchical list with LINQ
I have a simple hiearchical list of objects \"ProductGroups\" (IQueryable). Each \"ProductGroup\" has a collection of ProductGroups called \"Children\",an integer ParentId field and a boolean \"IsEnab[详细]
2023-04-12 00:42 分类:问答C# Linq where clause according to property name
Let\'s say I have the following class : public class Person { public string FirstName { get; set; } public string SurName { get; set; }[详细]
2023-04-12 00:36 分类:问答How to write `Aggregate` in `from .. in ..` notation?
How to write string result = strings.开发者_StackOverflow社区Aggregate(new StringBuilder(), (s, a) => s.AppendLine(a)).ToString();[详细]
2023-04-11 23:21 分类:问答C# Filtering employee ID's from a list to modify a query
Learning C# here. I have a monthly process form whereby one can select to process salaries for all employees or select the employees to process for using radio buttons (SAP B1 开发者_StackOverflowform[详细]
2023-04-11 22:26 分类:问答Is Resharper unnecessarily warning me about Access to modified closure here?
...so I have this code: foreach (var entry in list) { var marginOneEntry = otherList.FirstOrDefault(p => p.Margin == entry.Margin);[详细]
2023-04-11 22:23 分类:问答How do I select the value that occurs most frequently in queue via LINQ? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.[详细]
2023-04-11 21:59 分类:问答