linq
Building a method using lambda expressions call
I\'m building a method to get the DisplayAttribute 开发者_JS百科from System.ComponentModel.DataAnnotations to show on a label for the property.[详细]
2023-04-13 10:08 分类:问答XML LINQ: How to use select with where?
I have an XML catalog with product Name and product Price. I successfully select all items from my catalog with this code:[详细]
2023-04-13 10:01 分类:问答Reflector generated Lambda Expression, how to get back back actual Linq Query?
I\'m using Reflector to decompile some binaries. I\'m having problem with Lambda Expressions and methodof which doesn\'t compile. lambda Expression seems super complicated to me and I have no idea how[详细]
2023-04-13 09:26 分类:问答Linq XML How to ignore html code?
I am using Xelement - Linq to XML to parse some an RSS feed. Rss Example: <item> <title>Waterfront Ice Skating</title>[详细]
2023-04-13 09:24 分类:问答Insert multiple records issue (linq EF)
I need to insert multiple records to different tables, the problem is that some tables have 2 different foreing keys and the EF throws me an exception. Part of my schema is shown below.[详细]
2023-04-13 08:09 分类:问答Can I do a LINQ select with .Select without havng to use a class object
I was wondering first of all, what is the better practice? List<Employee> _employee = new List<Employee>();[详细]
2023-04-13 07:37 分类:问答Sorting IQueryable date column by string value in LINQ
I am trying to sort an IQueryable object by a specific column via a string input. Calling .ToList() on the IQueryable and sorting via a list column works perfectly, however when sorting a date column[详细]
2023-04-13 07:19 分类:问答Converting array of objects to XML in C#
I know there\'s no built in converter to convert an array of objects to XML. Is there a quick rudimentary way to create a XML out of the array to help me do a LINQ to XML join between this one and ano[详细]
2023-04-13 06:46 分类:问答"Simultaneous" insert if missing and log entry using Linq
In timing our code, I noticed that there is a substantial transaction time each time Linq communicates with SQL Server. In the past, when we used SQL directly, we could place multiple statements and s[详细]
2023-04-13 06:13 分类:问答LINQ: Can we create a flat list from hierarchy
OK... the title is correct... I dont want hierarchy from a flat list but exact reverse I have Folder class which has list of Folders in it held by property Children. So this is a typical hierarchy[详细]
2023-04-13 05:45 分类:问答