예제 #1
0
        protected override async Task <Block> AssignUpsertedReferences(Block record)
        {
            record.StatementList = await _statementLists.UpsertAsync(record.StatementList);

            record.StatementListId = record.StatementList?.StatementListId ?? record.StatementListId;
            return(record);
        }
예제 #2
0
        protected override async Task <MsBuildConditionalContructItemGroupPropertyGroupSection> AssignUpsertedReferences(MsBuildConditionalContructItemGroupPropertyGroupSection record)
        {
            record.MsBuildConditionalConstructList = await _conditionals.UpsertAsync(record.MsBuildConditionalConstructList);

            record.MsBuildConditionalConstructListId = record.MsBuildConditionalConstructList?.MsBuildConditionalConstructListId ?? record.MsBuildConditionalConstructListId;
            return(record);
        }
        protected override async Task <Method> AssignUpsertedReferences(Method record)
        {
            record.DecoratorList = await _decoratorLists.UpsertAsync(record.DecoratorList);

            record.DecoratorListId = record.DecoratorList?.DecoratorListId ?? record.DecoratorListId;
            record.Block           = await _blocks.UpsertAsync(record.Block);

            record.BlockId = record.Block?.BlockId ?? record.BlockId;
            record.DocumentationComment = await _documentationComments.UpsertAsync(record.DocumentationComment);

            record.DocumentationCommentId = record.DocumentationComment?.DocumentationCommentId ?? record.DocumentationCommentId;
            record.Identifier             = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId  = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ParameterList = await _parameterLists.UpsertAsync(record.ParameterList);

            record.ParameterListId = record.ParameterList?.ParameterListId ?? record.ParameterListId;
            record.Type            = await _identifiers.UpsertAsync(record.Type);

            record.TypeId            = record.Type?.IdentifierId ?? record.TypeId;
            record.TypeParameterList = await _typeParameterLists.UpsertAsync(record.TypeParameterList);

            record.TypeParameterListId = record.TypeParameterList?.TypeParameterListId ?? record.TypeParameterListId;
            return(record);
        }
        protected override async Task <Method> AssignUpsertedReferences(Method record)
        {
            record.ArrowClauseExpressionValue = await _expressions.UpsertAsync(record.ArrowClauseExpressionValue);

            record.ArrowClauseExpressionValueId = record.ArrowClauseExpressionValue?.ExpressionId ?? record.ArrowClauseExpressionValueId;
            record.AttributeListCollection      = await _attributeLists.UpsertAsync(record.AttributeListCollection);

            record.AttributeListCollectionId = record.AttributeListCollection?.AttributeListCollectionId ?? record.AttributeListCollectionId;
            record.Block = await _blocks.UpsertAsync(record.Block);

            record.BlockId = record.Block?.BlockId ?? record.BlockId;
            record.ConstraintClauseList = await _constraintClauseList.UpsertAsync(record.ConstraintClauseList);

            record.ConstraintClauseListId   = record.ConstraintClauseList?.ConstraintClauseListId ?? record.ConstraintClauseListId;
            record.DocumentationCommentList = await _documentationCommentLists.UpsertAsync(record.DocumentationCommentList);

            record.DocumentationCommentListId = record.DocumentationCommentList?.DocumentationCommentListId ?? record.DocumentationCommentListId;
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ModifierList = await _modifierLists.UpsertAsync(record.ModifierList);

            record.ModifierListId = record.ModifierList?.ModifierListId ?? record.ModifierListId;
            record.ParameterList  = await _parameterLists.UpsertAsync(record.ParameterList);

            record.ParameterListId = record.ParameterList?.ParameterListId ?? record.ParameterListId;
            record.Type            = await _identifiers.UpsertAsync(record.Type);

            record.TypeId            = record.Type?.IdentifierId ?? record.TypeId;
            record.TypeParameterList = await _typeParameterLists.UpsertAsync(record.TypeParameterList);

            record.TypeParameterListId = record.TypeParameterList?.TypeParameterListId ?? record.TypeParameterListId;
            return(record);
        }
        protected override async Task <InterfaceDeclaration> AssignUpsertedReferences(InterfaceDeclaration record)
        {
            record.DecoratorList = await _decoratorLists.UpsertAsync(record.DecoratorList);

            record.DecoratorListId = record.DecoratorList?.DecoratorListId ?? record.DecoratorListId;
            record.ExtendsList     = await _baseLists.UpsertAsync(record.ExtendsList);

            record.ExtendsListId        = record.ExtendsList?.BaseListId ?? record.ExtendsListId;
            record.DocumentationComment = await _documentationComments.UpsertAsync(record.DocumentationComment);

            record.DocumentationCommentId = record.DocumentationComment?.DocumentationCommentId ?? record.DocumentationCommentId;
            record.Identifier             = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId        = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ImportStatementList = await _importStatementLists.UpsertAsync(record.ImportStatementList);

            record.ImportStatementListId = record.ImportStatementList?.ImportStatementListId ?? record.ImportStatementListId;
            record.MethodList            = await _methodLists.UpsertAsync(record.MethodList);

            record.MethodListId = record.MethodList?.MethodListId ?? record.MethodListId;
            record.Namespace    = await _namespaces.UpsertAsync(record.Namespace);

            record.NamespaceId  = record.Namespace?.NamespaceId ?? record.NamespaceId;
            record.PropertyList = await _propertyLists.UpsertAsync(record.PropertyList);

            record.PropertyListId    = record.PropertyList?.PropertyListId ?? record.PropertyListId;
            record.TypeParameterList = await _typeParameterLists.UpsertAsync(record.TypeParameterList);

            record.TypeParameterListId = record.TypeParameterList?.TypeParameterListId ?? record.TypeParameterListId;
            return(record);
        }
예제 #6
0
        protected override async Task <ConstructorBaseInitializer> AssignUpsertedReferences(ConstructorBaseInitializer record)
        {
            record.ArgumentList = await _argumentLists.UpsertAsync(record.ArgumentList);

            record.ArgumentListId = record.ArgumentList?.ArgumentListId ?? record.ArgumentListId;
            return(record);
        }
예제 #7
0
        protected override async Task <Constructor> AssignUpsertedReferences(Constructor record)
        {
            record.AttributeListCollection = await _attributeLists.UpsertAsync(record.AttributeListCollection);

            record.AttributeListCollectionId = record.AttributeListCollection?.AttributeListCollectionId ?? record.AttributeListCollectionId;
            record.Block = await _blocks.UpsertAsync(record.Block);

            record.BlockId = record.Block?.BlockId ?? record.BlockId;
            record.ConstructorBaseInitializer = await _constructorBaseInitializers.UpsertAsync(record.ConstructorBaseInitializer);

            record.ConstructorBaseInitializerId = record.ConstructorBaseInitializer?.ConstructorBaseInitializerId ?? record.ConstructorBaseInitializerId;
            record.DocumentationCommentList     = await _documentationCommentLists.UpsertAsync(record.DocumentationCommentList);

            record.DocumentationCommentListId = record.DocumentationCommentList?.DocumentationCommentListId ?? record.DocumentationCommentListId;
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ModifierList = await _modifierLists.UpsertAsync(record.ModifierList);

            record.ModifierListId = record.ModifierList?.ModifierListId ?? record.ModifierListId;
            record.ParameterList  = await _parameterLists.UpsertAsync(record.ParameterList);

            record.ParameterListId = record.ParameterList?.ParameterListId ?? record.ParameterListId;
            return(record);
        }
        protected override async Task <MsBuildItemGroup> AssignUpsertedReferences(MsBuildItemGroup record)
        {
            record.MsBuildCondition = await _conditions.UpsertAsync(record.MsBuildCondition);

            record.MsBuildConditionId = record.MsBuildCondition?.MsBuildConditionId ?? record.MsBuildConditionId;
            record.MsBuildItemList    = await _items.UpsertAsync(record.MsBuildItemList);

            record.MsBuildItemListId = record.MsBuildItemList?.MsBuildItemListId ?? record.MsBuildItemListId;
            return(record);
        }
예제 #9
0
        protected override async Task <MsBuildConditionalConstruct> AssignUpsertedReferences(MsBuildConditionalConstruct record)
        {
            record.MsBuildConditionalConstructOtherwiseElement = await _otherwise.UpsertAsync(record.MsBuildConditionalConstructOtherwiseElement);

            record.MsBuildConditionalConstructOtherwiseElementId = record.MsBuildConditionalConstructOtherwiseElement?.MsBuildConditionalConstructOtherwiseElementId ?? record.MsBuildConditionalConstructOtherwiseElementId;
            record.MsBuildConditionalConstructWhenElementList    = await _whens.UpsertAsync(record.MsBuildConditionalConstructWhenElementList);

            record.MsBuildConditionalConstructWhenElementListId = record.MsBuildConditionalConstructWhenElementList?.MsBuildConditionalConstructWhenElementListId ?? record.MsBuildConditionalConstructWhenElementListId;
            return(record);
        }
        protected override async Task <MsBuildTask> AssignUpsertedReferences(MsBuildTask record)
        {
            record.Element = await _strings.UpsertAsync(record.Element);

            record.ElementId = record.Element?.AsciiStringReferenceId ?? record.ElementId;
            record.MsBuildTaskAttributeList = await _attributes.UpsertAsync(record.MsBuildTaskAttributeList);

            record.MsBuildTaskAttributeListId = record.MsBuildTaskAttributeList?.MsBuildTaskAttributeListId ?? record.MsBuildTaskAttributeListId;
            return(record);
        }
예제 #11
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);
        }
        protected override async Task <BaseType> AssignUpsertedReferences(BaseType record)
        {
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId     = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.TypeArgumentList = await _typeArgumentLists.UpsertAsync(record.TypeArgumentList);

            record.TypeArgumentListId = record.TypeArgumentList?.TypeArgumentListId ?? record.TypeArgumentListId;
            return(record);
        }
        protected override async Task <MsBuildProjectFile> AssignUpsertedReferences(MsBuildProjectFile record)
        {
            record.MsBuildConditionalContructItemGroupPropertyGroupSection = await _sections.UpsertAsync(record.MsBuildConditionalContructItemGroupPropertyGroupSection);

            record.MsBuildConditionalContructItemGroupPropertyGroupSectionId = record.MsBuildConditionalContructItemGroupPropertyGroupSection?.MsBuildConditionalContructItemGroupPropertyGroupSectionId ?? record.MsBuildConditionalContructItemGroupPropertyGroupSectionId;
            record.MsBuildTargetList = await _targets.UpsertAsync(record.MsBuildTargetList);

            record.MsBuildTargetListId = record.MsBuildTargetList?.MsBuildTargetListId ?? record.MsBuildTargetListId;
            return(record);
        }
예제 #14
0
        protected override async Task <EnumMember> AssignUpsertedReferences(EnumMember record)
        {
            record.DocumentationCommentList = await _documentationComments.UpsertAsync(record.DocumentationCommentList);

            record.DocumentationCommentListId = record.DocumentationCommentList?.DocumentationCommentListId ?? record.DocumentationCommentListId;
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            return(record);
        }
예제 #15
0
        protected override async Task <MsBuildTarget> AssignUpsertedReferences(MsBuildTarget record)
        {
            record.MsBuildTaskList = await _tasks.UpsertAsync(record.MsBuildTaskList);

            record.MsBuildTaskListId = record.MsBuildTaskList?.MsBuildTaskListId ?? record.MsBuildTaskListId;
            record.Name = await _strings.UpsertAsync(record.Name);

            record.NameId  = record.Name?.AsciiStringReferenceId ?? record.NameId;
            record.Outputs = await _strings.UpsertAsync(record.Outputs);

            record.OutputsId = record.Outputs?.AsciiStringReferenceId ?? record.OutputsId;
            return(record);
        }
        protected override async Task <MsBuildItem> AssignUpsertedReferences(MsBuildItem record)
        {
            record.ElementName = await _strings.UpsertAsync(record.ElementName);

            record.ElementNameId    = record.ElementName?.AsciiStringReferenceId ?? record.ElementNameId;
            record.MsBuildCondition = await _conditions.UpsertAsync(record.MsBuildCondition);

            record.MsBuildConditionId       = record.MsBuildCondition?.MsBuildConditionId ?? record.MsBuildConditionId;
            record.MsBuildItemAttributeList = await _attributes.UpsertAsync(record.MsBuildItemAttributeList);

            record.MsBuildItemAttributeListId = record.MsBuildItemAttributeList?.MsBuildItemAttributeListId ?? record.MsBuildItemAttributeListId;
            return(record);
        }
        protected override async Task <Constructor> AssignUpsertedReferences(Constructor record)
        {
            record.DecoratorList = await _attributeLists.UpsertAsync(record.DecoratorList);

            record.DecoratorListId = record.DecoratorList?.DecoratorListId ?? record.DecoratorListId;
            record.Block           = await _blocks.UpsertAsync(record.Block);

            record.BlockId    = record.Block?.BlockId ?? record.BlockId;
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId  = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ParameterList = await _parameterLists.UpsertAsync(record.ParameterList);

            record.ParameterListId = record.ParameterList?.ParameterListId ?? record.ParameterListId;
            return(record);
        }
예제 #18
0
        protected override async Task <Accessor> AssignUpsertedReferences(Accessor record)
        {
            record.ArrowClauseExpressionBody = await _expressions.UpsertAsync(record.ArrowClauseExpressionBody);

            record.ArrowClauseExpressionBodyId = record.ArrowClauseExpressionBody?.ExpressionId ?? record.ArrowClauseExpressionBodyId;
            record.Body = await _blocks.UpsertAsync(record.Body);

            record.BodyId       = record.Body?.BlockId ?? record.BodyId;
            record.ModifierList = await _modifierLists.UpsertAsync(record.ModifierList);

            record.ModifierListId = record.ModifierList?.ModifierListId ?? record.ModifierListId;
            record.SyntaxToken    = await _syntaxTokens.UpsertAsync(record.SyntaxToken);

            record.SyntaxTokenId = record.SyntaxToken?.SyntaxTokenId ?? record.SyntaxTokenId;
            return(record);
        }
        protected override async Task <Parameter> AssignUpsertedReferences(Parameter record)
        {
            record.AttributeListCollection = await _attributeLists.UpsertAsync(record.AttributeListCollection);

            record.AttributeListCollectionId = record.AttributeListCollection?.AttributeListCollectionId ?? record.AttributeListCollectionId;
            record.DefaultValue = await _expressions.UpsertAsync(record.DefaultValue);

            record.DefaultValueId = record.DefaultValue?.ExpressionId ?? record.DefaultValueId;
            record.Identifier     = await _identifiers.UpsertAsync(record.Identifier);

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

            record.TypeId = record.Type?.IdentifierId ?? record.TypeId;
            return(record);
        }
예제 #20
0
        protected override async Task <EnumDeclaration> AssignUpsertedReferences(EnumDeclaration record)
        {
            record.AttributeListCollection = await _attributeLists.UpsertAsync(record.AttributeListCollection);

            record.AttributeListCollectionId = record.AttributeListCollection?.AttributeListCollectionId ?? record.AttributeListCollectionId;
            record.BaseList = await _baseLists.UpsertAsync(record.BaseList);

            record.BaseListId           = record.BaseList?.BaseListId ?? record.BaseListId;
            record.ConstraintClauseList = await _constraintClauseLists.UpsertAsync(record.ConstraintClauseList);

            record.ConstraintClauseListId = record.ConstraintClauseList?.ConstraintClauseListId ?? record.ConstraintClauseListId;
            record.ConstructorList        = await _constuctorLists.UpsertAsync(record.ConstructorList);

            record.ConstructorListId        = record.ConstructorList?.ConstructorListId ?? record.ConstructorListId;
            record.DocumentationCommentList = await _documentationCommentLists.UpsertAsync(record.DocumentationCommentList);

            record.DocumentationCommentListId = record.DocumentationCommentList?.DocumentationCommentListId ?? record.DocumentationCommentListId;
            record.EnumMemberList             = await _enumMemberLists.UpsertAsync(record.EnumMemberList);

            record.EnumMemberListId = record.EnumMemberList?.EnumMemberListId ?? record.EnumMemberListId;
            record.FieldList        = await _fieldLists.UpsertAsync(record.FieldList);

            record.FieldListId = record.FieldList?.FieldListId ?? record.FieldListId;
            record.Identifier  = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.MethodList   = await _methodLists.UpsertAsync(record.MethodList);

            record.MethodListId = record.MethodList?.MethodListId ?? record.MethodListId;
            record.ModifierList = await _modifierLists.UpsertAsync(record.ModifierList);

            record.ModifierListId = record.ModifierList?.ModifierListId ?? record.ModifierListId;
            record.Namespace      = await _namespaces.UpsertAsync(record.Namespace);

            record.NamespaceId  = record.Namespace?.NamespaceId ?? record.NamespaceId;
            record.PropertyList = await _propertyLists.UpsertAsync(record.PropertyList);

            record.PropertyListId    = record.PropertyList?.PropertyListId ?? record.PropertyListId;
            record.TypeParameterList = await _typeParameterLists.UpsertAsync(record.TypeParameterList);

            record.TypeParameterListId = record.TypeParameterList?.TypeParameterListId ?? record.TypeParameterListId;
            record.UsingDirectiveList  = await _usingDirectiveLists.UpsertAsync(record.UsingDirectiveList);

            record.UsingDirectiveListId = record.UsingDirectiveList?.UsingDirectiveListId ?? record.UsingDirectiveListId;
            return(record);
        }
예제 #21
0
        protected override async Task <EnumDeclaration> AssignUpsertedReferences(EnumDeclaration record)
        {
            record.DocumentationComment = await _documentationComments.UpsertAsync(record.DocumentationComment);

            record.DocumentationCommentId = record.DocumentationComment?.DocumentationCommentId ?? record.DocumentationCommentId;
            record.EnumMemberList         = await _enumMemberLists.UpsertAsync(record.EnumMemberList);

            record.EnumMemberListId = record.EnumMemberList?.EnumMemberListId ?? record.EnumMemberListId;
            record.Identifier       = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId        = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ImportStatementList = await _importStatementLists.UpsertAsync(record.ImportStatementList);

            record.ImportStatementListId = record.ImportStatementList?.ImportStatementListId ?? record.ImportStatementListId;
            record.Namespace             = await _namespaces.UpsertAsync(record.Namespace);

            record.NamespaceId = record.Namespace?.NamespaceId ?? record.NamespaceId;
            return(record);
        }
예제 #22
0
        protected override async Task <Parameter> AssignUpsertedReferences(Parameter record)
        {
            record.DecoratorList = await _decoratorLists.UpsertAsync(record.DecoratorList);

            record.DecoratorListId = record.DecoratorList?.DecoratorListId ?? record.DecoratorListId;
            record.DefaultValue    = await _expressions.UpsertAsync(record.DefaultValue);

            record.DefaultValueId       = record.DefaultValue?.ExpressionId ?? record.DefaultValueId;
            record.DocumentationComment = await _documentationComments.UpsertAsync(record.DocumentationComment);

            record.DocumentationCommentId = record.DocumentationComment?.DocumentationCommentId ?? record.DocumentationCommentId;
            record.Identifier             = await _identifiers.UpsertAsync(record.Identifier);

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

            record.TypeId = record.Type?.IdentifierId ?? record.TypeId;
            return(record);
        }
        protected override async Task <Field> AssignUpsertedReferences(Field record)
        {
            record.AttributeListCollection = await _attributeLists.UpsertAsync(record.AttributeListCollection);

            record.AttributeListCollectionId = record.AttributeListCollection?.AttributeListCollectionId ?? record.AttributeListCollectionId;
            record.DocumentationCommentList  = await _documentationCommentLists.UpsertAsync(record.DocumentationCommentList);

            record.DocumentationCommentListId = record.DocumentationCommentList?.DocumentationCommentListId ?? record.DocumentationCommentListId;
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.Initializer  = await _expressions.UpsertAsync(record.Initializer);

            record.InitializerId = record.Initializer?.ExpressionId ?? record.InitializerId;
            record.ModifierList  = await _modifierLists.UpsertAsync(record.ModifierList);

            record.ModifierListId = record.ModifierList?.ModifierListId ?? record.ModifierListId;
            record.Type           = await _identifiers.UpsertAsync(record.Type);

            record.TypeId = record.Type?.IdentifierId ?? record.TypeId;
            return(record);
        }
        protected override async Task <Property> AssignUpsertedReferences(Property record)
        {
            record.AccessorList = await _accessorLists.UpsertAsync(record.AccessorList);

            record.AccessorListId          = record.AccessorList?.AccessorListId ?? record.AccessorListId;
            record.AttributeListCollection = await _attributeLists.UpsertAsync(record.AttributeListCollection);

            record.AttributeListCollectionId = record.AttributeListCollection?.AttributeListCollectionId ?? record.AttributeListCollectionId;
            record.DocumentationCommentList  = await _documentationCommentLists.UpsertAsync(record.DocumentationCommentList);

            record.DocumentationCommentListId = record.DocumentationCommentList?.DocumentationCommentListId ?? record.DocumentationCommentListId;
            record.Identifier = await _identifiers.UpsertAsync(record.Identifier);

            record.IdentifierId = record.Identifier?.IdentifierId ?? record.IdentifierId;
            record.ModifierList = await _modifierLists.UpsertAsync(record.ModifierList);

            record.ModifierListId = record.ModifierList?.ModifierListId ?? record.ModifierListId;
            record.Type           = await _identifiers.UpsertAsync(record.Type);

            record.TypeId = record.Type?.IdentifierId ?? record.TypeId;
            return(record);
        }