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

Entity Framework 6 - Knowledge Base (KB)

6 results in tag: testing

how to fill ObjectResult with data from a list>

In order to test a method that uses a stored procedure, a fake method has been created. This method is to return a list of ints....Something like this ...... public virtual ObjectResult<Nullable<int>> available_IDs( ... ) { List<int?> fake...
c# entity-framework testing
asked by PhilW

Why DbContext doesn't implement IDbContext interface?

Why there is no ...IDbContext... interface in the Entity Framework? Wouldn't it be easier to test things if there was an existing interface with methods like SaveChanges() etc. from which you could derive your custom database context interface?...public i...
entity-framework mocking moq testing unit-testing
asked by Grief Coder

Testing an Entity Framework database connection

I have an app that connects to a MYSQL database through the entity framework. It works 100% perfectly, but I would like to add a small piece of code that will test the connection to the database upon app startup....I had the idea of simply running a tiny ...
c# database-connection entity-framework mysql testing
asked by Steven Wood

Using Test Doubles with DbEntityEntry and DbPropertyEntry

I am using the new Test Doubles in EF6 as outlined ...here from MSDN... . VS2013 with Moq & nUnit. All was good until I had to do something like this: ...var myFoo = context.Foos.Find(id);...and then:...myFoo.Name = "Bar";...and then :...context.Entry(my...
dbcontext entity-framework-6 moq testing
asked by Lorne Redmond

EF6 localdb for integration testing

I am developing a WPF application which requires some database access. For development purposes I am using localdb with database migrations enabled and EF6....What I cannot figure out is how do I configure a separate localdb database for integration tests...
entity-framework-6 localdb testing
asked by Alan Rutter

How To Use Effort in Conjunction with Reverse Poco Generator

So I am Visual Studio 2017, EF6 and I am using this T4 template ...https://marketplace.visualstudio.com/items?itemName=SimonHughes.EntityFrameworkReversePOCOGenerator... to generate my context class ...Being a big fan of testing I already have 100% covera...
c# effort entity-framework-6 testing
asked by julian guppy

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
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!