linq-to-sql
Query returns SQL expression and not value from database?
I have an integer co开发者_如何学Pythonlumn in my table in the database, and I want to select it but it give me exception that can\'t convert from int to string[详细]
2023-04-05 00:24 分类:问答Unwind/Flatten Entity Framework result
Original SQL Query: SELECT e.id, e.[type_id], e.name FROM [user] u JOIN user_group ug ON ug.[user_id] = u.id[详细]
2023-04-04 18:29 分类:问答LINQ2SQL Entities - Updating only the fields that have changed
I was hoping there was an easier way to do this in my MVC 3 project.In my database, I have a Customer table that is mapped in my application via LINQ2SQL.There is also a partial customer class where I[详细]
2023-04-04 18:27 分类:问答LINQ Where Ignore Accentuation and Case
What is the easiest way to filter elements with LINQ through the Where method ignoring accentuation and case?[详细]
2023-04-04 16:40 分类:问答Creating a Conditional Relationship in Linq2SQL
I\'m using linq2sql against an old database system.In this system there are three tables, Invoices, Users, and SignupUsers.The Invoices table has a UID field that usually references the UID key on the[详细]
2023-04-04 15:48 分类:问答How to project LINQ-to-SQL query into custom object with a GroupBy and OrderBy
I\'m trying to convert this query so that it will output to a custom DTO type object. I want to get only pages with the highest revision number for the int[] that I pass in.[详细]
2023-04-04 15:08 分类:问答Linq-to-SQL problem
Find all customers whose purchase is less than 10000 var Customer = from c in _NorthWindDataContext.Customers[详细]
2023-04-04 14:31 分类:问答Linq2Sql and lambda returns "Method 'System.Object DynamicInvoke(System.Object[])' has no supported translation to SQL"
Why does... Func<IQueryable<CampaignCodePaths>> table = () => CampaignCodePaths; Func<CampaignCodePaths, int> propertySelector = e => e.Id;[详细]
2023-04-04 10:04 分类:问答LINQ to SQL omit field from results while still including it in the where clause
Basically I\'m trying to do this in LINQ to SQL; SELECT DISTINCT a,b,c FROM table WHERE z=35 I have tried this, (c# code)[详细]
2023-04-04 10:03 分类:问答linq2sql best way to update POCO having many columns
I am trying to update a POCO using lin2sql. I can also use entity framework.For updating objects I follow the next routine.[详细]
2023-04-04 09:28 分类:问答