t4mvc : Cannot inherit a controller class which has no default constructor?
问题 I am using T4MVC with MVC2. I have the following building blocks: A simple entity interface which defines that every POCO entity must have a long Id property: public interface IEntity { public long Id; } A simple POCO class which implements the IEntity interface and has some string properties: public class CD : IEntity { public long Id { get; set; } public long Name { get; set; } } A base controller: public abstract class EntityController<T> : Controller where T : class, global::IEntity {