I\'m trying to attach an audit log to an entity I\'ve written, I\'m wondering if there are hooks into a context that I can override to provide the desired functionality.
I would like to create a nested set model inside my database. However, I have a pr开发者_JS百科oblem, \'cause I don\'t know how to start the implementation using Entity Framework Code-First.
I have an MVC3 site with EF4.1 and repository/unit of work pattern and creating a new context per http request.
I have: a = b.Sum(..开发者_C百科.) + c.Sum(...) where b,c are entities. The problem is: when at least one of (b.Sum(...), c.Sum(...)) is null then a will be null. I\'d like null be treated as 0. Ho
I\'m using an ObjectContext and storing it in HttpContext.Current.Items collection.I share the ObjectContext for a single request, but the framework also enables the ability to load a fresh, non-cache
I am trying here to work with entity framework with unnamed columns within a stored procedure. Say for instance the following SP :
Here is my model public class Horse { public int HorseId { get; set; } public string Name { get; set; } public string Gender { get; set; }
How can I debug the Entity Framework? Can I see which queries it is actual开发者_Python百科ly trying to execute to the SQL server, to troubleshoot issues?Check out the MVC Mini Profiler: http://code.g
I have a problem with using EF 4.1 and many to many relationship. I decided to use database first approach (although I got the same problem with code first approach), and I created a model of the data
I am learning Code First development with a console application.In many of the examples, including Scott Gu\'s post, they suggest using Sql Server CE 4.0 and set it up so that the code creates the d开