Skip to content
New issue

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

DbContext get DbSet for interface (DbSet<interface>) #31185

Closed
KFKMan opened this issue Jul 5, 2023 · 1 comment
Closed

DbContext get DbSet for interface (DbSet<interface>) #31185

KFKMan opened this issue Jul 5, 2023 · 1 comment

Comments

@KFKMan
Copy link

KFKMan commented Jul 5, 2023

public interface IMail{
  public string Mail{get;set;}
}

public class Entity : IMail
{
  public int Id {get; set;}
  public string Mail {get; set;}
}

Usage;
context.Set();
Why this needed?
it's needed for dynamic systems where dbcontext entities setted dynamicly like plugin systems

@ajcvickers
Copy link
Member

Covered by #757.

@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants