I'm relatively new to .NET and I've stumbled on this particular issue: while following a tutorial on repository pattern, the definition of the class goes like this:
public class GenericRepository<TEntity> where TEntity : class { ...
That being said, this class is supposed to implement an interface. Since I already used the : operator, how do I do that?
I tried going public class GenericRepository<TEntity> : IGenericRepository where TEntity : class { and also public class GenericRepository<TEntity> where TEntity : class : IGenericRepository { but it doesnt work