public interface IModelService<T> where T : Entity, new()
{
ITableModelService<T> Table{get;}
ICommonQueryService<T> CommonQuery { get; }
}
public interface IModelService<T> where T 这个是什么意思,为什么还有where,还有new()这个是什么作用的?
...全文
796打赏收藏
这段代码什么意思?
public interface IModelService where T : Entity, new() { ITableModelService Table{get;} ICommonQueryService CommonQuery { get; } } public interface IModelService where T 这个是什么意思,为什么还有where,还有new()这个是什么作用的?