protected override IEnumerable <object> EnumerateReferences(ConstraintClauseList record)
        {
            yield return(record.ConstraintClauseListAssociations);

            yield return(record.ListIdentifier);
        }
 protected override Expression <Func <ConstraintClauseList, bool> > FindExisting(ConstraintClauseList record)
 => existing => existing.ListIdentifierId == record.ListIdentifierId;
        protected override async Task <ConstraintClauseList> AssignUpsertedReferences(ConstraintClauseList record)
        {
            record.ListIdentifier = await _strings.UpsertAsync(record.ListIdentifier);

            record.ListIdentifierId = record.ListIdentifier?.AsciiStringReferenceId ?? record.ListIdentifierId;
            return(record);
        }