Пример #1
0
        protected override IEnumerable <object> EnumerateReferences(DocumentationCommentAttribute record)
        {
            yield return(record.Identifier);

            yield return(record.Value);
        }
Пример #2
0
 protected override Expression <Func <DocumentationCommentAttribute, bool> > FindExisting(DocumentationCommentAttribute record)
 => existing
 => existing.IdentifierId == record.IdentifierId &&
 existing.ValueId == record.ValueId;
Пример #3
0
        protected override async Task <DocumentationCommentAttribute> AssignUpsertedReferences(DocumentationCommentAttribute record)
        {
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.Value        = await _identifiers.UpsertAsync(record.Value);

            record.ValueId = record.Value?.IdentifierId ?? record.ValueId;
            return(record);
        }