Beispiel #1
0
 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);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 public IQuery GenerateDeleteQuery(DatabaseTableDefinitionJson table, DatabaseEntity entity) =>
 GenerateDeleteQuery(table, entity.GenerateKey(table));
Beispiel #5
0
 private void ViewModelOnDeleteQuery(DatabaseEntity obj)
 {
     PushAction(new DatabaseKeyRemovedHistoryAction(viewModel, obj.GenerateKey(viewModel.TableDefinition)));
 }