entity-framework
Update using Entity Framework 1 (EF1) - on saveChanges()
I am trying to increment a counter which is stored in the DB. So this requires me to do and update using Entity Framework 1 (EF1).[详细]
2023-04-12 06:22 分类:问答ASP.NET MVC "strong" relationships
Currently I have an Model that\'s recursive (one of its properties is of the same type). For example: public class Page[详细]
2023-04-12 06:09 分类:问答referencing a list<Model> in a looping ParialView
I have been trying to loop partial views, which share the same model as the main view. Basically the idea is that there is a registration page where a parent can register multiple children, the childr[详细]
2023-04-12 05:23 分类:问答How do I query an integer column for "starts with" in Entity Framework?
I have a co开发者_如何转开发lumn that\'s defined as an integer in EF (Code First).I want to search it using \"starts with.\" Now, I can do this:[详细]
2023-04-12 05:22 分类:问答define scalar function with ef4.1 code first?
i have a function called distancebetween i wnat to define it in scalar valued function to call it by linq[详细]
2023-04-12 05:18 分类:问答Entity Framework 4.1 - How to "Force" EF To Go To DB Instead of Using Graph?
Here\'s the scenario, i have a website, which in a single 开发者_StackOverflowHTTP request (HTTP POST), i need to do the following:[详细]
2023-04-12 04:29 分类:问答In WCF Data Services, how can I change the visible name of my entities?
Using WCF Data Services I am using a data model that contains entities with names specific to the model. I would like to expose them through Odata but with different names.[详细]
2023-04-12 04:25 分类:问答Entity Framework 4.1 - How to get a name of a column for a generated poco object
I am using entity framework 4.1, an edmx mapping file is used to generate poco classes using T4 templates.[详细]
2023-04-12 04:00 分类:问答How do I convert a DBQuery<> (or ObjectQuery<>) to a non-collection primitive type (ie: int, string)
var lastitem = Contacts .OrderByDescending(c => c.ContactID) .Take(1).Select(p=>p.ContactID); lastitem is even though a single item returns a DBQuery<Int32>[详细]
2023-04-12 03:50 分类:问答WCF AND MVC3, system architecture. Passing a View Model with WCF?
I am using Entity Framework, Linq, WCF and MVC3. The system has been split into a tier approach and I am using WCF because multiple systems will be using the same Data Access and Business Logic.[详细]
2023-04-12 02:54 分类:问答