Table is nullable DateTime, but DataSet throws an exception?

前端 未结 9 1215
悲哀的现实
悲哀的现实 2020-12-13 14:42

I\'m attempting to use the DataSet designer to create a datatable from a query. I got this down just fine. The query used returns a nullable datetime column from the datab

9条回答
  •  Happy的楠姐
    2020-12-13 15:25

    It seems different with DataTable and Strongly Typed DataTable... Use Like this.

    DataSet1.DataTable1DataTable table = new DataSet1.DataTable1DataTable();
    table.Merge(adapter.GetData().CopyToDataTable());
    

提交回复
热议问题