类库说明文档
![]() | JHDataTableToDataTableTmodel Method |
将对象列表转换为包含可读属性的数据表格,异常将返回 null
Namespace: DCSoft.Utility.Data
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static DataTable ToDataTable<Tmodel>( IList<Tmodel> itemList ) where Tmodel : class, new()
Parameters
- itemList
- Type: System.Collections.GenericIListTmodel
对象列表
Type Parameters
- Tmodel
- 数据对象类型,必须提供无参构造函数
Return Value
Type: DataTable返回转换后的包含可读属性的数据表格
