public override bool Equals(object obj)
 {
     if (obj is RecurringPurchaseLine)
     {
         RecurringPurchaseLine _obj = (RecurringPurchaseLine)obj;
         return(_obj.RecurringPurchaseLineID == RecurringPurchaseLineID);
     }
     return(false);
 }
Exemplo n.º 2
0
        public override void AssignFrom(Entity rhs)
        {
            base.AssignFrom(rhs);

            //Copy2(rhs);
            RecurringPurchase _obj = rhs as RecurringPurchase;
            //this.RecurringPurchaseID = _obj.RecurringPurchaseID;

            //RecurringPurchaseLines.Clear();
            mRecurringPurchaseLines = new BindingList<RecurringPurchaseLine>();

            foreach (RecurringPurchaseLine line in _obj.RecurringPurchaseLines)
            {
                RecurringPurchaseLine new_line = line.Clone() as RecurringPurchaseLine;
                new_line.RecurringPurchase = this;
                mRecurringPurchaseLines.Add(new_line);
            }
        }