public void Insert(DateTime?DateCreated, string RefX, byte[] Ts)
        {
            OrderNumberTable item = new OrderNumberTable();

            item.DateCreated = DateCreated;

            item.RefX = RefX;

            item.Ts = Ts;


            item.Save(UserName);
        }
        public void Update(int OrderNumber, DateTime?DateCreated, string RefX, byte[] Ts)
        {
            OrderNumberTable item = new OrderNumberTable();

            item.MarkOld();
            item.IsLoaded = true;

            item.OrderNumber = OrderNumber;

            item.DateCreated = DateCreated;

            item.RefX = RefX;

            item.Ts = Ts;

            item.Save(UserName);
        }