我有以下两个课程;
public class CarModels
{
public List<Model> Model{ get; set; }
public CarModels()
{
Model = new List<Model>();
}
}
public class Model
{
public int ModelId { get; set; }
public string Name { get; set; }
public bool Enabled{ get; set; }
}
如何将数据提取为如下格式
(ModelId,Name,Enabled),(ModelId,Name,Enabled),(ModelId,Name,Enabled) 等