linq
Using LINQ to get one entity with the most of a child entity
I have an entity in Entity Framework 4 called Topic. Topic开发者_如何学Go has a navigation property to a collection of Reply entities.[详细]
2023-04-11 21:00 分类:问答How to convert a 'Y' or 'N' Value to a boolean value using linq?
I have this function of mine which selects all room types from the database, I am converting values from a data table to a generic list to optimize the speed of the system that i am creating my proble[详细]
2023-04-11 19:47 分类:问答Boolean inside of Select()
I have a person table filled with Person information. I would like to get a list of the personer inside the table and check if they have renewed thier password in last 24 hours, and then return a pers[详细]
2023-04-11 19:22 分类:问答Reusing a join in LINQ
I have a number of queries (in a C# project) that all use the same join syntax, is there a simple way to move the join out of the query an into a \'function\' or \'template\' (for want of a better wor[详细]
2023-04-11 18:41 分类:问答populating an Entity DataModel from XML using Linq
I have a C# .net 3.5 application using an ADO.NET Entity D开发者_JAVA技巧ata Model. I am loading the contents for a given database entry from an XML file.[详细]
2023-04-11 18:37 分类:问答Any way to store a LINQ expression as a property?
Basically, I want to be able to create an Object and pass in a LINQ query to it as a property and store that property...[详细]
2023-04-11 18:19 分类:问答Cant convert LINQ Query var to DataTable
I have the following code: var _permiso = from P in _db.clsPermiso select P; var _pagina = from P in _db.clsPagina.AsEnumerable()[详细]
2023-04-11 18:14 分类:问答Show Image on repeater control
Work on C# ASP.NET. I have a problem with repeater control. I want to show images on a page that is stored in a database. I collect information from northwind database.[详细]
2023-04-11 17:53 分类:问答How to convert Dictionary<string, string> to attribute string in LINQ?
I have a collection of key/values in the form of a D开发者_如何学编程ictionary<string, string>.[详细]
2023-04-11 17:50 分类:问答Is there a way to batch inserts using linq to sql
i would like to insert records in set of batches.For example, lets say I have 10,000开发者_JAVA技巧 records to be inserted.I want to insert them in batches of 500 or 1,000.How can I do this dynamicall[详细]
2023-04-11 17:22 分类:问答