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)

2 results in tag: xunit

Moq & EF6 - Mocking EF6 Remove method not removing an object

I am trying to mock my EF6 ...DbContext... and it all works for ...Add..., ...Update..., ...Find... methods. But it's not working for ...Remove... method for unknown reason....In theory, after removing, the ...Students... collection should have only 1 re...
c# entity-framework-6 moq unit-testing xunit
asked by TTCG

Mock an Entity DbContext Insert

I am using ...Xunit... & ...Moq.... I want to be able to mock an insert into a table. This way the record doesn't actually populate the table, but the unit test can verify that an insert was successful. Using the real DbContext, the unit test works for me...
c# entity-framework-6 moq unit-testing xunit
asked by Kevin C.

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!