protected override IEnumerable <object> EnumerateReferences(ConstructorBaseInitializer record) { yield return(record.ArgumentList); }
protected override Expression <Func <ConstructorBaseInitializer, bool> > FindExisting(ConstructorBaseInitializer record) => existing => existing.ArgumentListId == record.ArgumentListId;
protected override async Task <ConstructorBaseInitializer> AssignUpsertedReferences(ConstructorBaseInitializer record) { record.ArgumentList = await _argumentLists.UpsertAsync(record.ArgumentList); record.ArgumentListId = record.ArgumentList?.ArgumentListId ?? record.ArgumentListId; return(record); }