entity-framework-4.1
How to make imported functions have same param order as the SP?
I Use EF+Ria service for SL app. I generated EF Model from DB. Evenytime when DB have some changes, I update model from DB. But I got nightmare for imported function param order. Because evenytime whe[详细]
2023-04-13 00:49 分类:问答how can to instruct entity framework not to update a property of a model
I am using Asp.net MVC and Entity framework(Below code is just for demo) I have a model like below public class Person[详细]
2023-04-13 00:48 分类:问答Entity Framework Code First Deleting By ID Without Fetching (Generic Style)
Please tell me if this is a decent approach to deleting an Entity with开发者_高级运维out fetching it given I have the ID.[详细]
2023-04-13 00:05 分类:问答TPH vs TPT vs TPC and OR mappers
I\'m working on a datamodel that has a set of types that share some common fields such as Id, Name, Description. To be more concrete:[详细]
2023-04-12 23:33 分类:问答EF 4.1 what is the best way to use enums and be able to query them on columns?
Here I have my code, but I wonder if this will leave me do easy queries against the enum columns. By the way, do you see something else I can improve in this code?[详细]
2023-04-12 22:23 分类:问答Repopulate Entity Framework Navigation properties
Hi I have an MVC app I\'m calling a stored procedure from. The reason I\'m using a stored procedure is because the query is quite complex and it already exists so I may as well use it.[详细]
2023-04-12 22:12 分类:问答Better way to query a page of data and get total count in entity framework 4.1?
Currently when I need to run a query that will be used w/ paging I do it something like this: //Setup query (Typicall开发者_如何学运维y much more complex)[详细]
2023-04-12 20:08 分类:问答Entity Framework 4.1 Virtual Properties
If i have declared entity relationship in my model as virtual then there is no need to use the Include statement in my LINQ query, right ??-[详细]
2023-04-12 16:50 分类:问答EF 4.1, How to initialize data when you need images
xxI need to initialize some data on my model, but as you can see in the below code, I have a field for ProductImage.[详细]
2023-04-12 15:27 分类:问答LINQ and Entity Framework, get sum of related rows of a non mapped column
I want to get the sum of applicants that applied to a specific position, this should not be saved as a column.[详细]
2023-04-12 13:06 分类:问答