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
The following code requires a class:
efcore/src/EFCore/DbContext.cs
Lines 283 to 284 in 95e779b
Possible to call Set<T>() with an interface?
Set<T>()
public string GetValue<T>(int id) where T : IMyInterface { return context.Set<T>().Where(t => t.Id == id).FirstOrDefault(v => v.Value); }
The text was updated successfully, but these errors were encountered:
@mrlife No. Entity types must be concrete; see #757 which is about mapping interfaces to entity types.
Sorry, something went wrong.
No branches or pull requests
The following code requires a class:
efcore/src/EFCore/DbContext.cs
Lines 283 to 284 in 95e779b
Possible to call
Set<T>()
with an interface?The text was updated successfully, but these errors were encountered: