Comments (9)
Bit more information on this error:
If you follow the http://go.microsoft.com/fwlink/?LinkId=287068 link then it explains what is going on, i.e. EF v6 brought in a new Interface for Async. The interesting thing is the page also provides an idea of what is needed in a section on Unit Testing Async.
Now I'm willing to have a go at this as its a deal-breaker for my GenericServices library, which supports sync and async versions of all CRUD operations. The async/await feature introduced in .NET 4.5 and is very important.
Problem is, where do I start? Any advice gratefully received.
from delegatedecompiler.
The problem here that IDbAsyncQueryProvider / IDbAsyncEnumerable interfaces are defined in EF
assembly, and not in BCL
from delegatedecompiler.
It can be fixed with .NET 4.6 [AssemblyNeutral], but anyway it means
dropping support of .NET 4.5 and below. Or we higly tie it with EF. Both
are not an option.
from delegatedecompiler.
Another option: to have "DelegateDecompiler.EF" adapter.
from delegatedecompiler.
Hi @hazzik. Thanks for looking at that. I agree you don't want to be too tied to EF so an DelegateDecompiler.EF is a great idea. I am happy to look at this. From your research where should I look at inside DelegateDecompiler?
from delegatedecompiler.
I just added another commit to my PR that should resolve this issue. See the PR comments for more details.
Of note - you will need to drop your test database if it's already been created because the namespace move for the EF test project results in different migration names. If you don't recreate the test database, EF will think it's missing migrations because it'll see the ones with the old namespace in their name,
from delegatedecompiler.
Fixed in #31
from delegatedecompiler.
Package is live https://www.nuget.org/packages/DelegateDecompiler.EntityFramework
from delegatedecompiler.
Awesome. Just upgraded GenericServices to the new DelegateDecompiler.EntityFramework framework and async works. I also see from the generated documentation that it now supports all the various nullable tests, which is also great.
One question/comment: I could imagine a situation where you need both the DelegateDecompiler namespace and the DelegateDecompiler.EntityFramework, at which point you get an 'ambiguous reference' compile error. Dave did suggest another name, like DecompileEf or something. Is it a good idea to change things now before people start using it??
from delegatedecompiler.
Related Issues (20)
- Auto Detect ShouldDecompile members
- ArgumentException for a simple method HOT 1
- Decompiler does not remove transparent identifier expression on root level HOT 2
- Error decompiling unary operator Not for enum parameter
- DelegateDecompiler.EntityFrameworkCore .Net 5 support HOT 1
- NullReferenceException only dotcover test coverage runner HOT 8
- ArgumentException Type must not be ByRef under dotcover HOT 9
- InvalidOperationException on array of enums HOT 1
- No implementation of Decompile extension method for non-generic IQueryable
- Abstract property in hierachy with intermediate generic classes decompiled as default
- EntityFramework Core 6 (.NET6) HOT 1
- Exception using SelectMany
- No coercion operator is defined between types 'System.Int32' and 'System.Nullable`1[System.Boolean]'. - regression between 0.29.1 and 0.30.0 HOT 1
- Automatically decompile using a IDbContextOptionsExtension like LinqKit does? HOT 3
- Unit test failure HOT 3
- Bug: Cannot Decompile IQueryable<T> after using constrained generic when TInterface has multiple implementations HOT 5
- Delegate Decompiler with in-memory databases HOT 1
- Null reference error in TypeHierarchy.BuildChildren
- Performance regression from 0.31.0 to 0.32.0
- .net 8 or vs || HOT 1
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 delegatedecompiler.