我正在努力实现以下目标,这可能吗?
Type T = Type.GetType("EntityName")
IEnumerable<T> entities = BaseRepository.GetEntities(searchCriteria) as IEnumerable<T>();
我正在努力实现以下目标,这可能吗?
Type T = Type.GetType("EntityName")
IEnumerable<T> entities = BaseRepository.GetEntities(searchCriteria) as IEnumerable<T>();