コード例 #1
0
        protected override bool UpdateOrInsert(UnitRow updateData)
        {
            bool isUpdate = base.UpdateOrInsert(updateData);

            if (isUpdate)
            {
                Observer_Unit tempObs = ObserverPooling.GetItem();
                tempObs.RefreshSubject(updateData);

                Observer_Unit notifyObserver = Observers.FirstOrDefault_R(tempObs);
                ObserverPooling.Release(tempObs);

                if (notifyObserver != null)
                {
                    Notify(notifyObserver);
                }
            }

            return(isUpdate);
        }