DbContext has a method called Set, that you can use to get a non-generic DbSet, such as: var someDbSet = this.Set(typeof(SomeEntity)); So in your case: ...
確定! 回上一頁