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)

5 results in tag: mstest

Entity Framework Provider type could not be loaded?

I am trying to run my tests on TeamCity which is currently installed on my machine....System.InvalidOperationException...: ...The Entity Framework provider type '...System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer..., ...Ver...
c# entity-framework entity-framework-6 mstest teamcity-7.1
asked by ashutosh raina

How can I reset an EF7 InMemory provider between unit tests?

I am trying to use the EF7 InMemory provider for unit tests but the persistent nature of the InMemory database between tests is causing me problems....The following code demonstrates my issue. One test will work and the other test will always fail. Even t...
entity-framework-core mstest unit-testing
asked by Sailing Judo

Validating entities using data annotations or fluent api in EF 7.0 (In Memory)

I can't verify and test my database by in memory providers. for example I set these properties to required : ...public abstract class Log { #region Properties public Guid Id { get; set; } [Required] public string ClientIp { get; set; } ...
data-annotations entity-framework-core in-memory-database mstest unit-testing
asked by paradise_human

System.IO.FileLoadException while using EntityFramework Core 2.0

I am using the In memory provider in a .Net 461 unit test project. I am using VS 2017. ... var contextOptionsBuilder = new DbContextOptionsBuilder(); contextOptionsBuilder .UseInMemoryDatabase("testmethod1"); var ct...
entity-framework entity-framework-core mstest unit-testing
asked by R.D

How to validatie EF Core DBContext config in an unit test

Currently when there is a mistake in the config of the DBContext model, we get an error at run-time. For example:...The entity type 'MyObject' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'....This err...
c# entity-framework-core entity-framework-core-3.0 mstest
asked by Julian

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!