public AffordanceSubAffordance([CanBeNull] int?pID, [CanBeNull] SubAffordance subaff, decimal delayTime, [NotNull] string name,
                                [NotNull] string connectionString, [CanBeNull] int?affordanceID, StrGuid guid) : base(name, TableName, connectionString, guid)
 {
     TypeDescription = "Affordance - Subaffordance";
     ID            = pID;
     _affordanceID = affordanceID;
     _subaff       = subaff;
     _delayTime    = delayTime;
     if (_delayTime < 0)
     {
         _delayTime = 0;
     }
 }
        public AffordanceSubAffordance([CanBeNull] int?pID, [CanBeNull] SubAffordance subaff, decimal delayTime, [CanBeNull] int?affordanceID,
                                       [NotNull] string affordanceName, [NotNull] string connectionString, [NotNull] string subaffname, StrGuid guid)
            : base(subaffname + "(" + affordanceName + ")", TableName, connectionString, guid)
        {
            if (subaffname == null)
            {
                throw new ArgumentNullException(nameof(subaffname));
            }

            TypeDescription = "Affordance - Subaffordance";
            ID            = pID;
            _affordanceID = affordanceID;
            _subaff       = subaff;
            _delayTime    = delayTime;
            if (_delayTime < 0)
            {
                _delayTime = 0;
            }
        }