public ChartData(Int32 ChartId, DateTime ReportDate) { _Info = ChartDataDac.Retrieve(ChartId, ReportDate).Tables[0]; if (!_Info.HasRows()) { throw new KeyNotFoundException("No data found."); } }
public void Insert() { ChartDataDac.Insert(this); }