Esempio n. 1
0
        protected virtual void ValidateIsActive()
        {
            var isActiveRow = Old as IIsActiveRow;

            if (isActiveRow != null &&
                isActiveRow.IsActiveField[Old] < 0)
            {
                throw DataValidation.RecordNotActive(Old);
            }
        }
Esempio n. 2
0
        protected virtual void ValidateIsActive()
        {
            if (Old is IIsActiveRow isActiveRow &&
                isActiveRow.IsActiveField[Old] < 0)
            {
                throw DataValidation.RecordNotActive(Old, Localizer);
            }

            if (Old is IIsDeletedRow isDeletedRow &&
                isDeletedRow.IsDeletedField[Old] == true)
            {
                throw DataValidation.RecordNotActive(Old, Localizer);
            }
        }