I am planning to move my system to generic service layer.
public interface IAbcService<TEntity> where TEntity : class
public class AbcService<TEntity> : IAbcService<TEntity> where TEntity : class
I tried something but it does not work.
services.AddTransient<typeof(IAbcService<MyEntity>), AbcService();
....
....
....
I'm using some of my entities and along with that I am trying to add it to properties.
How can I register a generic service in asp.net core?