We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you plans to support this new EF core behavior?
The return type for several async methods has been changed from Task to ValueTask https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.0/breaking-changes#the-return-type-for-several-async-methods-has-been-changed-from-task-to-valuetask dotnet/efcore#15184
The text was updated successfully, but these errors were encountered:
Yes, just to add more details on this, here is an example of what is generated currently:
public static Task<Entity> GetByKeyAsync(this IQueryable<Entity> queryable, decimal id) { if (queryable is DbSet<Entity> dbSet) return dbSet.FindAsync(id); return queryable.FirstOrDefaultAsync(q => q.id == id); }
would simply need to become:
public static async Task<Entity> GetByKeyAsync(this IQueryable<Entity> queryable, decimal id) { if (queryable is DbSet<Entity> dbSet) return await dbSet.FindAsync(id); return await queryable.FirstOrDefaultAsync(q => q.id == id); }
Great tool by the way! Thanks for putting it together. I'm sure we're all waiting for final net core 3 release before dealing with issues like this ;)
Sorry, something went wrong.
The generated code in now compatible with EF Core 3.0 in version 2.0 of efg
No branches or pull requests
Do you plans to support this new EF core behavior?
The text was updated successfully, but these errors were encountered: