0
我正在快速創建報告。我通過從數據庫中拖放的方式在Visual Studio中創建了一個數據集。C#Microsoft Report使用查詢創建數據集TableAdapter
在運行時,我打電話給每個表通訊記者GetDataBy,因爲我需要兩個參數。我讀https://msdn.microsoft.com/en-us/library/ms171919.aspx
在我的代碼來填充它,我用下面的代碼:
Reports.dsInventory inv = new Reports.dsInventory();
dsInventory.inventory_appointmentsDataTable dtAppointment =
new dsInventoryTableAdapters.inventory_appointmentsTableAdapter()
.GetDataBy(PropertyId, AppointmentId);
dsInventoryTableAdapters.inventory_appointmentsTableAdapter taAppointments =
new dsInventoryTableAdapters.inventory_appointmentsTableAdapter();
taAppointments.Fill(inv.inventory_appointments);
我因子評分inv
是由我的查詢填充但明顯。如何應用我的過濾器(例如GetDataBy(PropertyId, AppointmentId)
)並將結果添加到我的inv
數據集中?
預先感謝您!