The DbContext API first shipped with Entity Framework version 4.1 and provides a more productive surface for working with the Entity Framework and can be used with the Code First, Database First, and Model First approaches.
I have the following code (Database is SQL Server Compact 4.0): Dim competitor=context.Competitors.Find(id) When I profile this …
entity-framework ef-code-first dbcontext sql-server-ce-4 dbsetSo I have a windows service process that performs a workflow process. The back end uses Repository and UnitofWork Pattern …
multithreading entity-framework dbcontextI have a .NET Core 1.1 API with EF Core 1.1 and using Microsoft's vanilla setup of using Dependency Injection to provide …
entity-framework asynchronous dbcontext asp.net-core-webapiIs there way that dependency injection can be configured/bootstrapped when using Entity Framework's migration commands? Entity Framework Core supports …
c# dependency-injection .net-core entity-framework-core dbcontextI'm using ASP.NET Entity Framework 4.1 MVC 3 (C#) I want to foreach through all the entities in my DbContext. I …
entity-framework asp.net-mvc-3 objectcontext objectstatemanager dbcontextI have an application using EF as ORM. The database used to have one schema, dbo and everything was working …
entity-framework dbcontext db-schemaI don't know if there is a better way to use the DbContext because it is not recommended to set …
c# .net wcf entity-framework-4 dbcontextI am using transactions in my unit tests to roll back changes. The unit test uses a dbcontext, and the …
c# .net dbcontext transactionscopeI want to use ExecuteStoreQuery function of Entity Framework and I was wondered that my context variable didn't have ExecuteStoreQuery …
c# linq entity-framework objectcontext dbcontextI'm trying to do this but it says I can't use FirstOrDefault, public static int GetId(this Context db, Type …
c# entity-framework entity-framework-4.1 dbcontext