Programming‎ > ‎

DevExpress


To Create a Unique ID, Something like OrderID, add the following code to file "Order.bo.designer.cs"
---------------------- C#
    public override void AfterConstruction()
    {
        base.AfterConstruction();
        _orderID = DistributedIdGeneratorHelper.Generate(this.Session.DataLayer, this.GetType().FullName, string.Empty);
    }

-------------------------
Comments