Comments (3)
@dbroudy could you please help me with this issue? Thanks
from lazyentitygraph.
Hi @janissimsons,
That would have to be a change to AutoFixture itself, as it generates the proxy objects, but the idea behind LazyEntityGraph and AutoFixture is that you are mocking the database, so you probably need to look for another solution to generate your test data.
from lazyentitygraph.
@dbroudy could you suggest a way to convert these proxy objects back to EF entities?
It would be nice if you could guide me in a general direction.
Basically what I am trying to accomplish is to generate test data for an object graph - and save it back to the database. (Taking into account foreign keys and other DB relationships). I haven't yet found a solution that would allow me to do this yet.
from lazyentitygraph.
Related Issues (20)
- can't add created object to DBSet HOT 2
- Add EntityFrameworkCore support HOT 3
- any way to intercept the automatic entity creation process ? HOT 1
- Navigating to property changes parent properties HOT 3
- Caching metadata per context not safe in EFCore HOT 1
- Exception when accessing collection property if it is defined in base class HOT 5
- Need a .NET standard 2.1 port of LazyEntityGraph.EntityFramework package, please HOT 1
- [EF Core] 3.x breaking change: "Method not found: [...] IProperty.get_ClrType()" HOT 3
- Does not work with EF.Core 3. if you don't explicitly add a reference to Microsoft.EntityFrameworkCore.InMemory 3 HOT 3
- System.Reflection.TargetException: 'Non-static method requires a target.' when setting navigation property to null HOT 1
- InvalidOperationException if a context has foreign keys upon multiple columns HOT 1
- Split testing utilities
- Having a base abstract migration breaks loading metadata from code first context
- Support one sided navigation properties HOT 1
- Add support for .Net6.0 HOT 3
- Add support for .Net7.0
- Incompatible with Moq 4.18.1
- GetClrType "Sequence contains no matching element" in LazyEntityGraph.EntityFramework.MetadataProperties HOT 9
- Any port to .net standard available or intended? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazyentitygraph.