示例#1
0
        public int returnNextOrderID()
        {
            DatabaseOperations operations = new DatabaseOperations();
            DataTable          dt         = operations.getTableData("OrderDetails", "OrderID");

            if (dt.Rows.Count == 0)
            {
                return(10001);
            }
            else
            {
                return((int)dt.Rows[dt.Rows.Count - 1][0] + 1);
            }
        }