zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

4 results in tag: testing

Testing ASP.NET 5 with Entity Framework 7 using in memory database

I am wanting to get ahold of the Context that I am injecting into the controllers during testing and modify the data in the "in memory" version of the database context....So the controller looks like this ...[Route("api/[controller]")] public class TestCo...
asp.net-core entity-framework-core testing
asked by Craig Selbert

Dependency Injection in Asp.net core Integration testing

I successfully injected dependencies using Moq in my unit test project. But for the integration testI would like to interact with the database. So I canot fake the repositories/ dependencies. I am having trouble how to achieve such thing in seperate class...
asp.net-core-1.0 dependency-injection entity-framework-core integration-testing testing
asked by Avi-B

Unit testing a stored proc called with Entity Framework Core 1.1.2

I have a method that uses Entity Framework to call a stored proc, the stored proc returns some data....Something like the following ...public async Task<IActionResult> Get(int customerId) { List<Product> products = _context.Products.FromSql("EXECUTE db...
entity-framework entity-framework-core testing unit-testing
asked by Bryan

Multi-Context InMemory Database

Is it possible to have an InMemory database (ASP.NET Core) that is shared across multiple DbContexts? It seems that each DbContext type keeps its own database, even when the same database name is specified in UseInMemoryDatabase.
asp.net-core c# entity-framework entity-framework-core testing
asked by GregoryComer

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!