public class MasterDao<T, S, BT, BS> : BaseDao<T>, IMasterDao<T, S>
where T : class, IMasterEntity<BT, BS>, BT
where S : class, IDetailEntity<BT, BS>, BS
where BT : class, IMasterEntity<BT, BS>
where BS : class, IDetailEntity<BT, BS>
{
......
}
上面泛型类中,MasterDao<T, S, BT, BS>这样允许吗?他适用于啥场合下
where T : class, IMasterEntity<BT, BS>, BT
where S : class, IDetailEntity<BT, BS>, BS
where BT : class, IMasterEntity<BT, BS>
where BS : class, IDetailEntity<BT, BS>
{
......
}
上面泛型类中,MasterDao<T, S, BT, BS>这样允许吗?他适用于啥场合下
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货