public DatabaseEntityRemovedByIndexHistoryAction(DatabaseEntity entity, int index, ViewModelBase viewModel) { this.entity = entity; this.index = index; this.viewModel = viewModel; actualKey = entity.GenerateKey(viewModel.TableDefinition); }
public DatabaseExecuteDeleteHistoryAction(MultiRowDbTableEditorViewModel viewModel, DatabaseEntity entity) { this.viewModel = viewModel; this.entity = entity; actualKey = entity.GenerateKey(viewModel.TableDefinition); }
public DatabaseEntityConditionsChangedHistoryAction(DatabaseEntity entity, IReadOnlyList <ICondition>?oldConditions, IReadOnlyList <ICondition>?newConditions, ViewModelBase viewModel) { this.entity = entity; this.oldConditions = oldConditions; this.newConditions = newConditions; this.viewModel = viewModel; this.actualKey = entity.GenerateKey(viewModel.TableDefinition); }
public IQuery GenerateDeleteQuery(DatabaseTableDefinitionJson table, DatabaseEntity entity) => GenerateDeleteQuery(table, entity.GenerateKey(table));
private void ViewModelOnDeleteQuery(DatabaseEntity obj) { PushAction(new DatabaseKeyRemovedHistoryAction(viewModel, obj.GenerateKey(viewModel.TableDefinition))); }