protected override async Task <UsingDirectiveList> AssignUpsertedReferences(UsingDirectiveList record) { record.ListIdentifier = await _strings.UpsertAsync(record.ListIdentifier); record.ListIdentifierId = record.ListIdentifier?.AsciiStringReferenceId ?? record.ListIdentifierId; return(record); }
protected override Expression <Func <UsingDirectiveList, bool> > FindExisting(UsingDirectiveList record) => existing => existing.ListIdentifierId == record.ListIdentifierId;
protected override IEnumerable <object> EnumerateReferences(UsingDirectiveList record) { yield return(record.UsingDirectiveListAssociations); yield return(record.ListIdentifier); }
public static UsingDirectiveList Merge(this UsingDirectiveList instance, in UsingDirectiveList given)