Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged LINQ

0 votes
1.0k views
1 answer
    I have an object, with ID and Name properties. I have a list of the objects, but I want to ... List<string> myObjectNames = myObjectList.? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
668 views
1 answer
    I need to be able to mock IDocumentQuery, to be able to test piece of code, that queries ... predicate on collectionDocuments parameter? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
759 views
1 answer
    I've taken a look at this answer on how to dynamically create an OrderBy expression in Entity Framework. But I' ... with ands and or operators. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
950 views
1 answer
    Is there any difference between DataFeedManager.LoadAllDataFeeds().FirstOrDefault(d => d.ItemID == itemId); and ... one over the other? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
829 views
1 answer
    I am not sure if what I am doing is possible. I have 2 methods. The body of the 2 methods are exactly ... do other stuff to it after returning See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    ISO Code description Year value CAD Canadian Dollar 2009 1.3001 CAD Canadian Dollar 2010 1.3001 CAD Canadian ... . Can someone please help See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
683 views
1 answer
    Edit - Cleaning up question to better reflect the actual issue: I'm using SQLMetal to generate database classes ... ANYONE have a solution?? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
694 views
1 answer
    I'm processing 1 million records in my application, which I retrieve from a MySQL database. To do so I'm ... doing wrong? Thanks in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
733 views
1 answer
    On my project written in C#, I've found a HUGE predicate that is used in this method of linq : public ... I reverted to the huge predicate. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
595 views
1 answer
    This is a continuation of my question: How to get reverse of a series of elements using Enumarable in C#? ... elements using Enumarable in C#? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
999 views
1 answer
    I have a list of "Issue" objects and i want to sort them by the "Priority" field. The issue is that "Priority ... " which is higher than "LOW" ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
664 views
1 answer
    I use Silverlight 4 with WCF RIA Services (domain services with EF4). Now I'd like to add a functionality, which ... so, how can I do that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
619 views
1 answer
    If the LINQ Count() extension method is invoked on an IEnumerable<T> that has a Count property (e.g. List< ... method can take advantage of it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
909 views
1 answer
    I am using an ADO.NET SqlCommand with a single SqlDbType.Structured parameter to send a table-valued parameter to a ... bits) into List? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
815 views
1 answer
    Is there any LINQ support for checking if an IEnumerable<T> is sorted? I have an enumerable that I want to verify is ... ; } } } return true; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
796 views
1 answer
    I've got an entity called new_trexmail with a string attribute called new_contextline. I'm trying to get a list of ... , 'hhh')? Thanks, David See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
640 views
1 answer
    I have got this weird error Cannot add an entity with a key that is already in use But what is quite ... what certainly caused this error? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
946 views
1 answer
    I need to sort a List<> of MediaItem objects by publish date...the publish date is not a property of the item. ... , DateTime>(item, date)); } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
837 views
1 answer
    Within the context of C# on .Net 4.0, are there any built-in objects that implement IQueryable<T>? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
749 views
1 answer
    This is kind-of related to this question, on how to merge two dictionaries in C#. An elegant Linq solution is ... to have an elegant solution. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
625 views
1 answer
    I'm trying to ask my OData service: "Give me all the Products that do not have a Category" with the ... don't answer with other options. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
914 views
1 answer
    To get a page from a database I have to execute something like this: var cs = ( from x in base. ... another query to get the count. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
651 views
1 answer
    I'm trying to learn F# by rewriting some C# algorithms I have into idiomatic F#. One of the first ... without the ref mutable variable. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
893 views
1 answer
    I have a column that's defined as an integer in EF (Code First). I want to search it using "starts with ... Framework. Can anyone lend any help? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
844 views
1 answer
    I have a just one table mapped in a datacontext. Here's the property and attribute on the column of ... without getting this index conversion? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
950 views
1 answer
    I'm using LINQ to SQL to get a search result of a FullTextSearch stored procedure in Sql server 2008. I dragged ... am I missing here, guys? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'm working with a WebApi project in C# (EF code first) and I'm using OData. I have a "User" ... available in controller to make Linq queries? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
680 views
1 answer
    I have list of class of type public class MyClass { public SomeOtherClass classObj; public string BillId; } public ... way to achieve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...