Exemplo n.º 1
0
        protected override async Task <ConstraintClause> AssignUpsertedReferences(ConstraintClause record)
        {
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId   = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ConstraintList = await _constraintList.UpsertAsync(record.ConstraintList);

            record.ConstraintListId = record.ConstraintList?.ConstraintListId ?? record.ConstraintListId;
            return(record);
        }
Exemplo n.º 2
0
 protected override Expression <Func <ConstraintClause, bool> > FindExisting(ConstraintClause record)
 => existing
 => existing.ConstraintListId == record.ConstraintListId &&
 existing.IdentifierId == record.IdentifierId;
Exemplo n.º 3
0
        protected override IEnumerable <object> EnumerateReferences(ConstraintClause record)
        {
            yield return(record.Identifier);

            yield return(record.ConstraintList);
        }