public interface ICrudService where T: Entity, new()
What is the meaning of \"new()\" at the end of the above code?
new()
new() means that T has to have a parameterless constructor.
T
This is a help to enable you to construct objects of type T in your generic class/method:
public T Create() { return new T(); }