我有以下DataTable
。当我尝试向此数据表添加行时,它会返回类似
无法计算表达式,因为线程在某个点停止 垃圾收集是不可能的,可能是因为代码是 优化
DataTable
是否有内存限制?
dtOrder = new DataTable();
dtOrder.Columns.Add(new DataColumn("sl_Odr_ID", typeof(long)));
dtOrder.Columns.Add(new DataColumn("pack_dtl_ID", typeof(int)));
dtOrder.Columns.Add(new DataColumn("Name", typeof(string)));
dtOrder.Columns.Add(new DataColumn("sales_Batch_No", typeof(string)));
dtOrder.Columns.Add(new DataColumn("sales_Qty", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_free", typeof(int)));
dtOrder.Columns.Add(new DataColumn("sales_Rate", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Gross", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Discount", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_DisPerc", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Asses_Amt", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Ex_Duty", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_tax_amt", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_FreeQty_Tax", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Asses_Amt_onFree", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Net_Amt", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("sales_Cess_on_KVAT", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("edu_cess", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("Hedu_cess", typeof(decimal)));
dtOrder.Columns.Add(new DataColumn("tot", typeof(decimal)));