Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature delete and insert #62

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

s-andrey
Copy link
Contributor

No description provided.

var auditOperationInfoList = new List<AuditAdditionalInfo>();
var extraProcessingList = new List<DataObject>();
GenerateQueriesForUpdateObjects(DeleteQueries, DeleteTables, UpdateQueries, UpdateFirstQueries, UpdateLastQueries, UpdateTables, InsertQueries, InsertTables, TableOperations, QueryOrder, true, AllQueriedObjects, DataObjectCache, extraProcessingList, objects);
GenerateQueriesForUpdateObjects(DeleteQueries, DeleteTables, UpdateQueries, UpdateFirstQueries, UpdateLastQueries, UpdateTables, InsertQueries, InsertTables, TableOperations, QueryOrder, true, AllQueriedObjects, DataObjectCache, InsertDeleteValue, UpdateClassesValue, extraProcessingList, objects);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю избавиться от этого бесконечного кол-ва параметров, заменить на объект GenerateQueriesContext, в который и запрятать всё необходимое.

@@ -268,6 +275,17 @@ public virtual void UpdateObjects(ref DataObject[] objects, DataObjectCache Data
}
}

if (InsertDeleteValue.Count > 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Аналогичные проверки нужно добавить и для других циклов.

@@ -4209,6 +4209,8 @@ private bool ContainsKeyINProcessing(Dictionary<TypeKeyPair, bool> processedDict
/// <param name="checkLoadedProps"> Проверять ли загруженность свойств </param>
/// <param name="processingObjects"> The processing Objects. </param>
/// <param name="dataObjectCache"> The Data Object Cache.</param>
/// <param name="insertDeleteValue"> Обработка случая когда создается новый мастер и старый удаляется, массив мастеров.</param>
/// <param name="updateClassesValue"> Обработка случая когда создается новый мастер и старый удаляется, массив агрегаторов.</param>
/// <param name="dobjects"> Для чего генерим запросы </param>
public virtual void GenerateQueriesForUpdateObjects(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут поменять сигнатуру.

@bratchikov bratchikov removed their assignment Oct 27, 2019
@bratchikov bratchikov added the bug label Oct 27, 2019
@bratchikov bratchikov added this to Done in Flexberry ORM 5.1 Oct 27, 2019
@bratchikov bratchikov added this to the 5.1 milestone Oct 27, 2019
@bratchikov bratchikov removed this from the 5.1 milestone Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants