public class SomeRepository<TContext> : IDisposable
where TContext : DbContext, new()
{
protected TContext context;
protected SomeRepository()
{ }
public virtual void Create<T>(T item) where T : class, new()
{
...
}
}
internal class SomeCrud : SomeRepository<SomeContext>
{
public override void Create(Product item)
{
....
}
}
}
public override void Create(Product item) not appropriate method found to override でエラーが発生しました。誰かが間違いを見てください。私がこのように書いている場合:
public override void Create<Product>(Product item)
{
....
}
製品タイプが表示されません ありがとう