linq-to-entities
How to set C# Property with Linq Statement?
0 Project. I have property public string UserName { get; set; } can i set this property to retrieve user name using linq statement?[详细]
2023-04-12 01:41 分类:问答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 分类:问答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 分类:问答How to combine rows using LINQ?
Say I have an entity with following properties [Id, UserName, ProductName], where Id is the PK, and other fields are not unique, so the rows with same UserName repeat multiple times.[详细]
2023-04-11 13:51 分类:问答how to convert the bool to nullable bool (bool?)
i have a table 开发者_高级运维provider with column implied(tiny int)(something like nullable bool)[详细]
2023-04-11 12:38 分类:问答Error getting foreign key data on entity
I\'m new in MVC2 and Entity Framework and I tried get a list of products with the respective category name, but it\'s returned me the error[详细]
2023-04-11 11:15 分类:问答Linq: Count Groups of Rows Including 0 For Missing Rows
I\'d like to summarize a list of activities into the number of occurrences by Day for the last week, using Linq to Entities.For example, let\'s say I have data like this in my database:[详细]
2023-04-11 06:26 分类:问答Linq To Entity :: What the following code is doing?
I am running this query but i am unsure of what is it fetching ? var sm = pe.C开发者_如何学编程ategories.Include(\"ParentCategory\").Where(c => c.ParentCategory.CategoryName == \"Electronics\");[详细]
2023-04-11 04:17 分类:问答Entity Framework creating null entry in the DB on POST
I\'ve got a simple form that creates Categories with a name a开发者_JAVA百科nd a List of Cars assigned to them.[详细]
2023-04-11 02:42 分类:问答LINQ to Entities integer division incorrect?
I\'m trying to do a little partitioning, dividing list entries into 6-month blocks. Using this LINQ to Entities query, I get results that imply that integer division is not taking place:[详细]
2023-04-10 15:55 分类:问答