entity-framework
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 分类:问答Simple transactions in EF4.0 POCO with UnitOfWork pattern and ApplicationBus
i recently ran into the surprising behaviour of EF4, where after adding an entity to a context it is not available for querying (well, you need to make your queries aware, that you might be searching[详细]
2023-04-12 19:42 分类:问答EF4 inserting NULLs to SQL Server tables via Function Import [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po[详细]
2023-04-12 19:06 分类:问答Is SaveChanges() Necessary with Function Imports (Stored Procedures)?
Is SaveChanges() necessary with function imports (stored procedures)? Example: void foo(Product product)[详细]
2023-04-12 18:41 分类:问答C# LINQ DatabaseEntitie Query to first Value in Last Element results in Error
I have my Microsoft SQL 2008 Database Entity with one Table containing 6 Columns where the first column is simply my primarykey which is a number which gets increased each step.[详细]
2023-04-12 16:54 分类:问答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 分类:问答Custom Conditional validation on strongly typed view in MVC
I have a Person model and a student model. The student model has 2 FKs of PersonIDs; one for student and the other for parent.[详细]
2023-04-12 15:22 分类:问答Entity Framework Design - Multiple "Views" for the data
I have a design question related to Entity Framework entities. I have created the following entity: public class SomeEntity {[详细]
2023-04-12 15:19 分类:问答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 分类:问答How to create references in Entity Framework when the database schema does not have them?
I have a database schema which I cannot alter, and which has tables that reference each other without declaring an explicit foreign key relationship.For example:[详细]
2023-04-12 12:15 分类:问答