zzz projects Entity Framework Effort EF Effort
Getting Started Release Notes
Knowledge Base Online Examples  GitHub
  • Getting Started
  • Release Notes
  • Knowledge Base
  • Online Examples
  •  GitHub
  •   Download  

Entity Framework Effort - Knowledge Base (KB)

18 results for: in tag: entity-framework-6

Unable to use existing database in unit tests with Effort framework

I am trying to write test using a database, hosted in Azure SQL, with ...Effort... framework on Entity Framework 6....When executing the following code, an exception is thrown: ...[ClassInitialize] public static void ClassInitialize(TestContext context) {...
c# effort entity-framework entity-framework-6 unit-testing
asked by Lena Kaplan

What's the correct way to use Effort with Entity Framework 6?

I'm trying to get some test code working using the Effort data provider with Entity Framework 6. What I'm trying to do seems like it should be the absolute simplest use-case, but I'm just not able to get things to work....Here is my DbContext class: ...p...
c# effort entity-framework entity-framework-6 linq
asked by Tim Long

Spatial DbGeography Provider exception with Effort.EF6 [No usable spatial provider could be found.]

I'm developing an application with EF6 and I decided to use System.Data.Entity.Spatial.DbGeography for my locations as follows...public class Place { public int Id { get; set; } public string Name { get; set; } public DbGeography Location { get; se...
asp.net-mvc c# effort entity-framework-6 spatial
asked by nramirez

Using Migrations with Effort.EF6?

I'm using EF6 and I'm now setting up some tests for my aggregates. I've decided to use Effort.EF6 because I'd like to have those tests run without having to install an entire database engine....My DbContext uses migrations and a seeding method that insert...
.net c# effort entity-framework-6
asked by Maciek

unit testing with effort for entity framework 6 with computed values

Using effort EF6 with code first does not populate computed values. I have a datetime field (FechaCreacion) that is computed. How can I emulate it in Effort, so It is populated with DateTime.Now after savingChanges() ?...This post ...Using Effort (EF Test...
effort entity-framework entity-framework-6 unit-testing
asked by nerlijma

Update model causes interface to be removed from DbContext when using Effort with Entity Framework

Presently, I am attempting to use Effort (...https://effort.codeplex.com/...) with my Entity Framework 6 solution to allow unit testing without requiring a database connection (see ...http://www.codeproject.com/Articles/460175/Two-strategies-for-testing-E...
c# effort entity-framework-6 unit-testing
asked by user8128167

How can you perform the same tests as Effort using only Moq?

Presently, I have setup a lot of tests including data access layer and business logic layer tests using Effort (see ...https://effort.codeplex.com/...). We have already been using Moq in our unit tests, and my boss would like to keep things simple, so he...
c# effort entity-framework-6 moq unit-testing
asked by user8128167

Effort (EF6) exception when accessing DbSet (The given key was not present in the dictionary)

This is proving to be a little hard to trace down, but when using Effort for testing Entity Framework 6, I seem to get a KeyNotFoundException ("The given key was not present in the dictionary") error when trying to access one of the DBSet repositories. ....
.net effort entity-framework entity-framework-6 linq
asked by Stefan Zvonar

Entity Framework 6 throws migration exception when trying to create a context with Effort

I'm trying to use Effort to test my application but if code-first migrations are enabled on the context then it throws the following exception:...System.InvalidOperationException: Migrations is enabled for context 'XDbContext' but the database does not ex...
asp.net-mvc effort entity-framework-6
asked by Steve

ASP Boilerplate problems using Effort in unit testing with EFProf (Entity Framework Profiler)

Having issues using EFProf (...http://www.hibernatingrhinos.com/products/EFProf...) with ASP Boilerplate (...http://www.aspnetboilerplate.com/...). ...For unit testing, ASP Boilerplate uses Effort (...https://github.com/tamasflamich/effort...) for mockin...
asp.net-boilerplate effort entity-framework entity-framework-6 unit-testing
asked by Todd Brooks

Unit Test with Effort EF6 with Async Methods

I'm trying to setup Unit tests for this. But every example I've seen that actually works is this type of setup. It will work this way....//Setup DBContext public MyContext(DbConnection connection) : base(connection, true){} //Have some service that gets p...
c# effort entity-framework entity-framework-6 unit-testing
asked by KryptoBeard

Effort.Exceptions.EffortException : Database has not been initialized - after non commited update?

Why does this exception occur? Is this a bug?...I'm using Effort, the EF testing library to create an in memory instance of my database and run into this interesting scenario: ...Open ...DbContext1...Add item to ...Table... (do not save)...Close ...DbCon...
c# effort entity-framework entity-framework-6
asked by Philip Pittle

UnintentionalCodeFirstException | Entity Framework Unit Testing with Effort.Ef6 using Database First

The situation...I want to enable unit testing of my ...DbContext... based on entity framework 6. I have created my ...DbContext... and my models with the database first approach and now have an ....edmx... designer file....The problem...My automatically c...
c# effort entity-framework entity-framework-6 unit-testing
asked by WoIIe

Using Effort with EF6 in a DB First approach

I'm using the Model First approach with EF6 and I'm trying to use ...Entity Framework Effort... to develop in-memory tests....Here is what I do in my test:...var inMemoryConnection = Effort.DbConnectionFactory.CreateTransient("name=MyEntities"); var inMem...
effort entity-framework-6
asked by Boubou

Effort supported unit tests conflict

I've inherited some tests with this project. They were working when running against the SQL database, but slowly. I'm trying to switch over to using Effort.... .NET4.5, EF6.2, Effort 1.3.10....I have two possibly related issues with my unit tests....It do...
c# effort entity-framework-6 unit-testing vstest
asked by BWhite

"Sequence contains no matching element" setting HasColumnType("varchar") in EF Mappings using Effort

I have the following Entity Framework (v6.1.3) mapping:...public class FileStoreDocumentEntityMapping : EntityTypeConfiguration<FileStoreDocumentEntity> { public FileStoreDocumentEntityMapping() { Property(x => x.FileStoreDownloadUrl) ...
.net c# effort entity-framework-6
asked by Adolfo Perez

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

Making tests faster by using only partial database in EntityFramework Effort

Use case: We have a quite large database (about 200 tables) that is used in a large (legacy) system. It's implemented as a database-first approach, with one ...edmx... file defining the entire database. We are using XUnit and Effort for automatic testing....
effort entity-framework entity-framework-6 unit-testing
asked by Ropez

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