我正在使用.NETCore和Dapper。我的问题是.NETCore没有数据表,而这正是Dapper用于表值参数(TVP)的内容。我试图转换List到List,使用此列表创建一个SqlParameter,然后将其转换为DynamicParameter:publicstaticSqlParametertoTVP(thisIListenumerable,stringname){Listrecords=newList();//filterallowedtypesvarproperties=typeof(T).GetProperties().Where(p=>Mapper.TypeToSQLM